Page 1 of 1
[Feature Request] Map Plugin with one marker as parameter
Posted: 27 Oct 2014, 14:48
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
Re: [Feature Request] Map Plugin with one marker as paramete
Posted: 30 Oct 2014, 15:02
by Jan
Hi, sorry, I don't understand what you mean?
Jan
Re: [Feature Request] Map Plugin with one marker as paramete
Posted: 03 Nov 2014, 13:14
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}
Re: [Feature Request] Map Plugin with one marker as paramete
Posted: 03 Nov 2014, 23:56
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
Re: [Feature Request] Map Plugin with one marker as paramete
Posted: 04 Nov 2014, 10:26
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).
Re: [Feature Request] Map Plugin with one marker as paramete
Posted: 04 Nov 2014, 22:44
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

Re: [Feature Request] Map Plugin with one marker as paramete
Posted: 05 Nov 2014, 11:02
by gsx750f
Or when copy this plugin as new/other plugin?
Re: [Feature Request] Map Plugin with one marker as paramete
Posted: 06 Nov 2014, 23:55
by Jan
Hi, I don't understand?