Ero sivun ”Widget:Ol3AnyObsMap” versioiden välillä
Järvi-meriwikistä
p (Tekstin korvaus – ”//www.jarviwiki.fi/scripts/” muotoon ”/scripts/”) |
p (Tekstin korvaus – ”//cdn.polyfill.io/v2/polyfill.min.js?features=requestAnimationFrame,Element.prototype.classList,URL” muotoon ”https://cdnjs.cloudflare.com/polyfill/v3/polyfill.min.js”) |
||
(12 välissä olevaa versiota samalta käyttäjältä ei näytetä) | |||
Rivi 2: | Rivi 2: | ||
<link rel="stylesheet" href="/scripts/ol3/ol.css" type="text/css"> | <link rel="stylesheet" href="/scripts/ol3/ol.css" type="text/css"> | ||
− | <script src="// | + | <script src="https://cdnjs.cloudflare.com/polyfill/v3/polyfill.min.js"></script> |
<script src="/scripts/ol3/ol.js"></script> | <script src="/scripts/ol3/ol.js"></script> | ||
Rivi 46: | Rivi 46: | ||
if (siteQuery == 'x') { siteQuery = ''; } | if (siteQuery == 'x') { siteQuery = ''; } | ||
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 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 cluster = ( "<!--{$cluster|default:yes|escape:'html'}-->" == "yes" ); | var cluster = ( "<!--{$cluster|default:yes|escape:'html'}-->" == "yes" ); | ||
+ | var vesifi = ( "<!--{$vesifi|default:yes|escape:'html'}-->" == "yes" ); | ||
var layersArr = []; | var layersArr = []; | ||
Rivi 64: | Rivi 66: | ||
'obstypebar': obstypebar, | 'obstypebar': obstypebar, | ||
'clustered': cluster, | 'clustered': cluster, | ||
+ | 'pointRadius': pointradius, | ||
+ | 'simplepoints': simplepoints, | ||
+ | 'vesifi': vesifi, | ||
'zoomToExtent': zoomto | 'zoomToExtent': zoomto | ||
}); | }); | ||
− | layersArr.push({ 'type': 'geoloc', 'name': 'Sijaintisi', 'show': true, 'center': false, 'zoom': 12, 'track': false }); | + | //layersArr.push({ 'type': 'geoloc', 'name': 'Sijaintisi', 'show': true, 'center': false, 'zoom': 12, 'track': false }); |
// do the base map with these settings | // do the base map with these settings | ||
Rivi 79: | Rivi 84: | ||
'memo': memo | 'memo': memo | ||
}); | }); | ||
− | + | //console.log(memo); | |
} | } | ||