× Forum for the GPXTrackMap Content Plugin for Joomla! 2.5 and 3.x

Center the map on a point of interest

fingeradmin replied the topic: Center the map on a point of interest

11 months 2 weeks ago

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... :blink:

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 or Create an account to join the conversation.

mirger replied the topic: Center the map on a point of interest

11 months 2 weeks ago

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...

Last Edit: 11 months 2 weeks ago by mirger.
The following user(s) said Thank You: fingeradmin

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

Manard replied the topic: Center the map on a point of interest

11 months 2 weeks ago

Hello Gerrit,

I use the latest version V1.4.1 Beta 1 - 2017-09-06.

I did not see the first file attached :oops: , 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

Last Edit: 11 months 2 weeks ago by Manard.

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

mirger replied the topic: Center the map on a point of interest

11 months 2 weeks ago

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!

File Attachment:

File Name: gpxtrackma...2-27.zip
File Size:24 KB

Attachments:
Last Edit: 11 months 2 weeks ago by mirger.
The following user(s) said Thank You: Manard

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

Manard replied the topic: Center the map on a point of interest

11 months 2 weeks ago

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.

{gpxtrackmap}Waypoints.gpx,dl=0,center_x=3676497.64,center_y=-842535.93,zoomlevel=15,tpl=3{/gpxtrackmap}

I have this error in return:

GPXTrackMap plugin warnings:
unknown parameter: "center_x" unknown parameter: "center_y"


Thank you for your help

Bernard

Last Edit: 11 months 2 weeks ago by Manard.

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

Manard replied the topic: Center the map on a point of interest

11 months 2 weeks ago

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 or Create an account to join the conversation.

Powered by Kunena Forum