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
[Feature Request] Map Plugin with one marker as parameter
-
- Phoca Newbie
- Posts: 5
- Joined: 27 Oct 2014, 14:35
- Location: Germany
- Jan
- Phoca Hero
- Posts: 48739
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: [Feature Request] Map Plugin with one marker as paramete
Hi, sorry, I don't understand what you mean?
Jan
Jan
If you find Phoca extensions useful, please support the project
-
- Phoca Newbie
- Posts: 5
- Joined: 27 Oct 2014, 14:35
- Location: Germany
Re: [Feature Request] Map Plugin with one marker as paramete
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}
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}
- Jan
- Phoca Hero
- Posts: 48739
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: [Feature Request] Map Plugin with one marker as paramete
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
Jan
If you find Phoca extensions useful, please support the project
-
- Phoca Newbie
- Posts: 5
- Joined: 27 Oct 2014, 14:35
- Location: Germany
Re: [Feature Request] Map Plugin with one marker as paramete
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).
"when view=marker : center=marker coordinates" .... or something like that. Otherwise, the user must duplicate every marker in separated map (redundance).
- Jan
- Phoca Hero
- Posts: 48739
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: [Feature Request] Map Plugin with one marker as paramete
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
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
-
- Phoca Newbie
- Posts: 5
- Joined: 27 Oct 2014, 14:35
- Location: Germany
Re: [Feature Request] Map Plugin with one marker as paramete
Or when copy this plugin as new/other plugin?
- Jan
- Phoca Hero
- Posts: 48739
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: [Feature Request] Map Plugin with one marker as paramete
Hi, I don't understand?
If you find Phoca extensions useful, please support the project