Center the map on a point of interest
fingeradmin replied the topic: Center the map on a point of interest
- fingeradmin
- Offline
- Posts: 249
- Thank you received: 44
Hi there,
@Gerrit: thanks for your help - much appreciated!
Unfortunately i'm very busy with completely different stuff at the moment, so it may take me a while before i can work on the plugin again.
I haven't had the time yet to install Joomla 4 - i hope i don't have to change a bunch of things to get the plugin to work with Joomla 4. I'm not exactly a PHP expert, so any code change takes me ages... ![]()
If any of you has the time to give it a try on Joomla 4, i'm grateful for every help i can get!
cheers, Frank
Please Log in to join the conversation.
mirger replied the topic: Center the map on a point of interest
- mirger
- Offline
- Posts: 11
- Thank you received: 2
Just to mention this:
Frank Ingermann is the author of the script!
I made just a small adjustment in his scripts to get a centre of a collection of way-points.
I hope Frank has time to get his scripts ready for Joomla 4 ![]()
I don't update our website often. Therefore I don't object to EPSG coordinates...
Please Log in to join the conversation.
Manard replied the topic: Center the map on a point of interest
- Manard
- Topic Author
- Offline
- Posts: 11
- Thank you received: 0
Hello Gerrit,
I use the latest version V1.4.1 Beta 1 - 2017-09-06.
I did not see the first file attached
, excuse me...
Now it's ok, I had to change the syntax of "'center-_y" at line 897 by "center_y"
Would it be possible to use decimal degrees instead of EPSG coordinates?
Thanks a lot for your help
Kind regards
Bernard
Please Log in to join the conversation.
mirger replied the topic: Center the map on a point of interest
- mirger
- Offline
- Posts: 11
- Thank you received: 2
Hi Bernard
Sorry to hear it.
On my server it works allright.
The cache is switched off and I deleted the cache.
It sounded like you are still using the 'old' version of the gpxtrackmap.php.
Have you used my attachment within this topic?
Maybe you should add this to line 897: ,'center_x','center_y'
you will get
'cache','tpl','usejquery','showwarnings','zoomlevel','tfapikey','center_x','center_y');
I have done this in attached file!
Please Log in to join the conversation.
Manard replied the topic: Center the map on a point of interest
- Manard
- Topic Author
- Offline
- Posts: 11
- Thank you received: 0
Hello Gerrit,
I just tried by replacing the contents of the gpxtrackmap.php file with the code of the topic "(a) waypoints" and with a script similar to your example.
I have this error in return:
Thank you for your help
Bernard
Please Log in to join the conversation.
Manard replied the topic: Center the map on a point of interest
- Manard
- Topic Author
- Offline
- Posts: 11
- Thank you received: 0
Hello Gerrit,
Thank you very much for your help. I will try your script, the GpxTrackMap command line and I will keep you informed
Kind regards
Bernard
Please Log in to join the conversation.