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

Center the map on a point of interest

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.

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

11 months 2 weeks ago

Hello all

On epsg.io/map#srs=4326&x=6.030174&y=49.955030&z=17 you can "transform" the coordinates to the needed x,y values to center your map.

Put this in your article:

{gpxtrackmap}test.gpx,dl=0,center_x=670751.70,center_y=6438194.95,zoomlevel=15,tpl=3{/gpxtrackmap}
And Kautenbach is the middle of your map:
kautenbach.mirger.nl/
Or on Texel: texel.mirger.nl

Please make first a good backup of your gpxtrackmap.php before using my adjustments!!!
Allthough I think it is working correctly, you will use it on your own responsibility!

Warning: this is just the file gpxtrackmap.php. It is not an update!
If you do not know what you have to do, wait till Frank has time to make an update file!!!

Have a good time!

Attachments:
Last Edit: 11 months 2 weeks ago by mirger.

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

Powered by Kunena Forum