Ero sivun ”Widget:Ol3AllRegionsMap” versioiden välillä
Järvi-meriwikistä
p (Tekstin korvaus – ”jQuery(window).load( function() { <!--{$id|default:CommonObsMap|escape:'html'}-->_func(); });” muotoon ”function <!--{$id|default:CommonObsMap|escape:'html'}-->_jQueryTest() { if ( typeof window.jQuery == 'undefined' ) { ) |
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”) |
||
(9 välissä olevaa versiota samalta käyttäjältä ei näytetä) | |||
Rivi 1: | Rivi 1: | ||
<includeonly> | <includeonly> | ||
− | <link rel="stylesheet" href=" | + | <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=" | + | <script src="/scripts/ol3/ol.js"></script> |
− | <script src=" | + | <script src="/scripts/proj4js/dist/proj4.js"></script> |
− | <script src=" | + | <script src="/scripts/jwol3js/jwol3.js"></script> |
− | <link rel="stylesheet" href=" | + | <link rel="stylesheet" href="/scripts/ol-ext/dist/ol-ext.min.css" type="text/css"> |
− | <script src=" | + | <script src="/scripts/ol-ext/dist/ol-ext.min.js"></script> |
− | <link rel="stylesheet" href=" | + | <link rel="stylesheet" href="/scripts/ol-ext/overlay/popupoverlay.css" /> |
− | <link rel="stylesheet" href=" | + | <link rel="stylesheet" href="/scripts/ol-ext/overlay/popupoverlay.anim.css" /> |
<div class="jwMapContainer" style="height:<!--{$height|default:500|escape:'html'}-->px" > | <div class="jwMapContainer" style="height:<!--{$height|default:500|escape:'html'}-->px" > | ||
Rivi 46: | Rivi 46: | ||
layersArr.push( { | layersArr.push( { | ||
'id': 'reagions', | 'id': 'reagions', | ||
− | 'type': ' | + | 'type': 'anygeo', |
'name': 'Maakunnat', | 'name': 'Maakunnat', | ||
− | + | 'restUrl': '//geo.stat.fi/geoserver/tilastointialueet/', | |
− | ' | + | 'layer': 'tilastointialueet:maakunta1000k', |
+ | //'cql_filter': "tilastointialueet:nimi = '" + muni + "'", | ||
'selectable': true, | 'selectable': true, | ||
'zoomToExtent': true, | 'zoomToExtent': true, | ||
Rivi 56: | Rivi 57: | ||
}); | }); | ||
− | 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 |