Placemark for navigation

  • hagen_fenris
  • hagen_fenris's Avatar Topic Author
  • Offline
  • Gold Boarder
  • Gold Boarder
More
1 year 7 months ago #10431 by hagen_fenris
hagen_fenris created the topic: Placemark for navigation
Hi,
i`m showing a single placemark inside my article using the plugin-call using the placemark-list to choose a specific map.
Under tha map to geolocation and navigation-bar is enabled to allow planing a route to the placemark.
Unless the placemark is selected and choosen as destination, the navigation routes to the center of the mpa, which is specified in map details.

Is there a way to automaticly assign the placemark as destination, so only the starting point has to be set by the user?

regards
matthias

Please Log in or Create an account to join the conversation.

More
1 year 7 months ago - 1 year 7 months ago #10439 by Dima
Dima replied the topic: Placemark for navigation
Hi
If you use placemark list call
wiki.zhuk.cc/index.php/Zh_GoogleMap_Plug...ap_by_Placemark_List
just set Center parameter to your plugin call to placemark ID.
In this case map center will be placemark and your route feature will work correctly (I think, but I have to check :) :) :) )

Don't forget support my developments: post review in JED, donate ;)

Post your sites as examples into my directory
Zh GoogleMap: forum.zhuk.cc/index.php/forum/gm-user-s-sites
Zh YandexMap: forum.zhuk.cc/index.php/forum/ym-user-s-sites
Last Edit: 1 year 7 months ago by Dima.

Please Log in or Create an account to join the conversation.

  • hagen_fenris
  • hagen_fenris's Avatar Topic Author
  • Offline
  • Gold Boarder
  • Gold Boarder
More
1 year 7 months ago - 1 year 7 months ago #10441 by hagen_fenris
hagen_fenris replied the topic: Placemark for navigation
Hi,
i´ve added the plugin-call like this:
{zhgooglemap-markerlist:4316;6;16;donotchange;donotchange;300px;4316}

At placemark ID4316 is set this:


If i use the touring-box, it navigates me to the map center defined at map ID6, instead to the placemark.
Attachments:
Last Edit: 1 year 7 months ago by hagen_fenris.

Please Log in or Create an account to join the conversation.

More
1 year 7 months ago - 1 year 7 months ago #10442 by Dima
Dima replied the topic: Placemark for navigation
1-st.
You have errors in call
{zhgooglemap-markerlist:4316;6;16;donotchange;donotchange;300px;4316}
You have to call
{zhgooglemap-markerlist:4316;6;16;do not change;do not change;300;4316}
Ie you have to write "do not change" with spaces and without px

2-nd
One question. Do map with id 6 has dinamic loading map objects enabled? If yes, try to set it off and try.
I think there is a little bug when enabled this feature.
To fix it you can - disable ajax loading map objects, but enable ajax loading infowin content. In this case I set placemark as map center and create it in page body, but large infowin content can be loaded by jquery

Don't forget support my developments: post review in JED, donate ;)

Post your sites as examples into my directory
Zh GoogleMap: forum.zhuk.cc/index.php/forum/gm-user-s-sites
Zh YandexMap: forum.zhuk.cc/index.php/forum/ym-user-s-sites
Last Edit: 1 year 7 months ago by Dima.

Please Log in or Create an account to join the conversation.

More
1 year 7 months ago #10443 by Dima
Dima replied the topic: Placemark for navigation
I fixed it, and in next release it will.
I hope today evening I'll do little release.

Don't forget support my developments: post review in JED, donate ;)

Post your sites as examples into my directory
Zh GoogleMap: forum.zhuk.cc/index.php/forum/gm-user-s-sites
Zh YandexMap: forum.zhuk.cc/index.php/forum/ym-user-s-sites

Please Log in or Create an account to join the conversation.

  • hagen_fenris
  • hagen_fenris's Avatar Topic Author
  • Offline
  • Gold Boarder
  • Gold Boarder
More
1 year 7 months ago #10450 by hagen_fenris
hagen_fenris replied the topic: Placemark for navigation
Hi,
changed the plugin-call:
{zhgooglemap-markerlist:4316;6;16;do not change;do not change;300;4316}
Navigation still uses the lat/lng from map-details.
When disabling dynamic loading for map objects, it works.

Please Log in or Create an account to join the conversation.

Time to create page: 0.127 seconds

Donate


Go to top