p (Tekstin korvaus – ”//layersArr.push({ 'type': 'geoloc', 'name': 'Sijaintisi', 'show': true, 'center': false, 'zoom': 12, 'track': false });↵” muotoon ””) |
Ei muokkausyhteenvetoa |
||
| (6 välissä olevaa versiota samalta käyttäjältä ei näytetä) | |||
| Rivi 44: | Rivi 44: | ||
var days = parseInt('<!--{$days|default:365|escape:'html'}-->'); | var days = parseInt('<!--{$days|default:365|escape:'html'}-->'); | ||
var pointradius = parseInt('<!--{$pointradius|default:6|escape:'html'}-->'); | var pointradius = parseInt('<!--{$pointradius|default:6|escape:'html'}-->'); | ||
var obstypebar = ("<!--{$obstypebar|default:yes|escape:'html'}-->" == "yes" ); | var obstypebar = ( "<!--{$obstypebar|default:yes|escape:'html'}-->" == "yes" ); | ||
var zoomto = ("<!--{$zoomto|default:false|escape:'html'}-->" == "true"); | var zoomto = ("<!--{$zoomto|default:false|escape:'html'}-->" == "true"); | ||
var simplepoints = ("<!--{$simplepoints|default:false|escape:'html'}-->" == "true"); | var simplepoints = ("<!--{$simplepoints|default:false|escape:'html'}-->" == "true"); | ||
| Rivi 71: | Rivi 71: | ||
}); | }); | ||
} | } | ||
console.log( "<!--{$obstypebar|default:yes|escape:'html'}-->" ); | |||
console.log( obstypebar ); | |||
layersArr.push({ | layersArr.push({ | ||
| Rivi 91: | Rivi 94: | ||
// do the base map with these settings | // do the base map with these settings | ||
var map = | var map = jwMakeMap({ | ||
'container': '<!--{$id|default:CommonObsMap|escape:'html'}-->_container', | 'container': '<!--{$id|default:CommonObsMap|escape:'html'}-->_container', | ||
'base': base, | 'base': base, | ||


