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

customMapLayer_Norgeskart.js update

fingeradmin replied the topic: customMapLayer_Norgeskart.js update

4 years 4 months ago

Hello Chris,

great to hear, and thanks a lot for the corrected version!
Will be in the next release.

Just one correction you should make: in the last line, replace
map0.addLayer(layerNorgeskart);
with:
%MAPVAR%.addLayer(layerNorgeskart);

- otherwise it won't work if you have more than one single map in an article.

thanks again & cheers,
Frank

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

chris replied the topic: customMapLayer_Norgeskart.js update

4 years 4 months ago

Solved it. Here is an updated content of the file customMapLayer_Norgeskart.js which works.

var layerNorgeskart =
new OpenLayers.Layer.XYZ(
"Topografisk norgeskart",
"opencache.statkart.no/gatekeeper/gk/gk.o...om=${z}&x=${x}&y=${y}",
{isBaseLayer: true,
attribution: '<a href="www.statkart.no">Statens kartverk, www.statkart.no/nor/Land/Fagomrader/Geovekst/">Geovekst og www.statkart.no/?module=Articles;action=....publicShow;ID=14194">kommuner'
});
map0.addLayer(layerNorgeskart);

Last edit: 4 years 4 months ago by chris.
The following user(s) said Thank You: fingeradmin

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

chris created the topic: customMapLayer_Norgeskart.js update

4 years 4 months ago

Joomla 3.9.18
GPXTrackMap 1.4.1 beta-1

I've been using the map layer for Norwegian topographic maps "customMapLayer_Norgeskart.js", and this have been working fine. But now it don't work anymore when displaying GPX files.

Now the map displaying an gpx file looks like this:



I think thet the Javascript file customMapLayer_Norgeskart.js needs to be updated.
Think I have found the information I need to update here in this link:

www.kartverket.no/data/lage-kart-pa-nett/

but I am no coder so I can't figgure it out.

Any advice ?

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

Powered by Kunena Forum