[Feature Request] Map Plugin with one marker as parameter

Phoca Maps - displaying maps in Joomla! CMS
gsx750f
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 27 Oct 2014, 14:35
Location: Germany

[Feature Request] Map Plugin with one marker as parameter

Post by gsx750f »

map with many markers exists.
good for overviews.
when I create a detail page with text for one marker and like show the map only with these marker (and navigation at bottom) , I need plugin code with coordinates of these marker.

regards from berlin, Jürgen
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48739
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: [Feature Request] Map Plugin with one marker as paramete

Post by Jan »

Hi, sorry, I don't understand what you mean?

Jan
If you find Phoca extensions useful, please support the project
gsx750f
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 27 Oct 2014, 14:35
Location: Germany

Re: [Feature Request] Map Plugin with one marker as paramete

Post by gsx750f »

Hi Jan,

sorry for my english ;)

Now (example):

I defined one map.
I defined many marker for this map.

When I insert the map... {phocamaps view=map|id=1} ... all marker displayed. Good for overviews...
Example, I like show a map with exibitions in one or more countries.
In article of the exibition, I like show the map only with the marker of this exibition... {phocamaps view=marker|id=87}
The center geo coordinates are the coordinates from marker. Not from map.

perhaps also with zoom factor....

{phocamaps view=marker|id=87|zoom=12}
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48739
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: [Feature Request] Map Plugin with one marker as paramete

Post by Jan »

Hi, the center is always the center of the map, not of the markers because there can be more markers in the map. To have it the same like the marker is, the map should get the same coordinates like the marker, you want to center.

Jan
If you find Phoca extensions useful, please support the project
gsx750f
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 27 Oct 2014, 14:35
Location: Germany

Re: [Feature Request] Map Plugin with one marker as paramete

Post by gsx750f »

Hi Jan, I know. my suggestion is that the marker parameter overwrites the map center coordinates.

"when view=marker : center=marker coordinates" .... or something like that. Otherwise, the user must duplicate every marker in separated map (redundance).
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48739
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: [Feature Request] Map Plugin with one marker as paramete

Post by Jan »

Hi, then this somehow need to be modified in php code, to detect if there is marker and if there is then to set its center instead of map (php will add it to javascript code).

As default, the map is the one who centers it because in one map there can be more markers :-(
If you find Phoca extensions useful, please support the project
gsx750f
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 27 Oct 2014, 14:35
Location: Germany

Re: [Feature Request] Map Plugin with one marker as paramete

Post by gsx750f »

Or when copy this plugin as new/other plugin?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48739
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: [Feature Request] Map Plugin with one marker as paramete

Post by Jan »

Hi, I don't understand?
If you find Phoca extensions useful, please support the project
Post Reply