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

(a)waypoints

fingeradmin replied the topic: (a)waypoints

1 year 2 months ago

Hi Gerrit,

that was fast :) - great!

Normally, it's quite e bit of work to introduce new parameters because i try to make them all work with parameter presets, too.

In this case this doesn't make much sense, because you'll have to find the coordinates individually for each track anyway. So - yes, i think that's a nice addition!

Could you post your complete gpxtrackmap.php here? I can merge it with my current version and have the feature included as a standard feature in the next release.

Thanks! :)

cheers, Frank

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

mirger replied the topic: (a)waypoints

1 year 2 months ago

To find the center_x and center_y you can use epsg.io to finde the coordinates.

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

mirger replied the topic: (a)waypoints

1 year 2 months ago

Hi Frank

if ( isset($this->_params['center_x']) and isset($this->_params['center_y']))
{
	$zoomcode = ' this.map.setCenter(new OpenLayers.LonLat(' . $this->_params['center_x'] .',' . $this->_params['center_y'] .'), '. $this->_params['zoomlevel'] . '); ';
 }
 else
 {
     // V1.4.0: added option for fixed zoom level.  
etc don' forget the }
and than a call to gpxtrackmap with this parameters:

test.gpx,dl=0,center_x=670751.70,center_y=6438194.95,zoomlevel=15

it works on kautenbach.mirger.nl/
Faster than I thought...

The map below is from gpxtrackmap.

Kind regards, Gerrit

Last Edit: 1 year 2 months ago by mirger.

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

mirger replied the topic: (a)waypoints

1 year 2 months ago

Alas, that was what I was asking.
With OSM modul I can zoom into my region of interest. If the visitors are zooming out they can see more of our walks.
I have read about the function in openlayers called setcenter. Whenever I have time (around December, I hope) I will have to play with my ideas.
Javascript is not my favourite language though...

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

fingeradmin replied the topic: (a)waypoints

1 year 2 months ago

Hi Gerrit,

sorry the late reply, i missed your message somehow.

Can I use pre-sets to zoom into a certain region?


You can set a default zoom level for the initial display of the track
and use that in a preset:
z1:zoomout=1
z2:zoomout=2

In the invocation code, you can add the preset as described here .

Note that the zoom center will always be the geographical center of your track, though.

This means you can not set the zoom center anywhere else, if that
is what you were asking.

cheers, Frank

The following user(s) said Thank You: mirger

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

mirger created the topic: (a)waypoints

1 year 2 months ago

Hi Frank

Thanks for your great plug-in. Without it our website was nothing.

I am trying to use your plug-in for showing all our walks, just a 100...
Can I use pre-sets to zoom into a certain region?
Just like I do now with the OSM module.
See my test site kautenbach.mirger.nl/
I want to replace the OSM module with your plug-in to make the maintenance more simple and to get pictures in the pop-ups..

Kind regards

Gerrit

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

Powered by Kunena Forum