Centering map on specific coordinates

  • ftaret
  • Topic Author
  • Offline
  • New Member
  • New Member
More
1 week 2 days ago - 1 week 2 days ago #19640 by ftaret
Hi,
I'm using visualization to get placemarks from database SQL query. This works fine.
So I have only one placemark with ID=1 that contains all actual placemarks retrieved from the DB (500+).

Now I want to display a map in another component's page using ZH OpenStreetMap plugin, showing all placemarks, but centered on one specific placemark using its coordinates (lat,lng).
In the plugin documentation, it do not find the way to do it.
How can I do this?

thanks for your help.

 
Last edit: 1 week 2 days ago by ftaret.

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

More
1 week 1 day ago #19641 by Dima
Replied by Dima on topic Centering map on specific coordinates
Hi
I didn't that feature. In plugin you can only center by placemark ID.
But you can create the other map with center where you want, and diplay by plugin on that map your placemarks.

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

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

  • ftaret
  • Topic Author
  • Offline
  • New Member
  • New Member
More
1 week 23 hours ago #19642 by ftaret
Replied by ftaret on topic Centering map on specific coordinates
Hi,
thanks for your reply.

I was using visualizations wrong. Hence, ajax loading doesn't work with visualization generated placemarks.

So I finally imported all placemarks directly in markers table in the DB, and I can center the map dynamically on a single placemark through the plugin now.

Thanks for your help.

(I have ~1500 placemarks in 3 groups and jQuery ajax loading is almost realtime. Congrats for this great component.)

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

More
4 days 20 hours ago #19643 by Dima
Replied by Dima on topic Centering map on specific coordinates
It's good news that my extension is quite good for your purposes.
And you can ask me if you want to add some new features. I can think of it, and if it is good idea, I can implement it.
Cheers,
Dmitry

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

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

Time to create page: 0.305 seconds
Powered by Kunena Forum