Ero sivun ”Widget:Ol3EditLocationMap” 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”) |
||
(3 välissä olevaa versiota samalta käyttäjältä ei näytetä) | |||
Rivi 2: | Rivi 2: | ||
<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> |
− | <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" /> |
<script src="//cdn.jsdelivr.net/openlayers.geocoder/latest/ol3-geocoder.js"></script> | <script src="//cdn.jsdelivr.net/openlayers.geocoder/latest/ol3-geocoder.js"></script> | ||
<link rel="stylesheet" href="//cdn.jsdelivr.net/openlayers.geocoder/latest/ol3-geocoder.min.css" /> | <link rel="stylesheet" href="//cdn.jsdelivr.net/openlayers.geocoder/latest/ol3-geocoder.min.css" /> | ||
− | <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/jwol3js/jwol3.css" /> |
<script type="text/javascript"> | <script type="text/javascript"> | ||
Rivi 66: | Rivi 66: | ||
'id': 'muni', | 'id': 'muni', | ||
'type': 'anyrest', | 'type': 'anyrest', | ||
− | 'restUrl': '//paikkatieto.ymparisto.fi/arcgis/rest/services/ | + | 'restUrl': '//paikkatieto.ymparisto.fi/arcgis/rest/services/sykemaps/GISAineistot2/MapServer/0/query', |
'search': "KuntaNro LIKE '%'", | 'search': "KuntaNro LIKE '%'", | ||
'name': 'Kunnat', | 'name': 'Kunnat', | ||
Rivi 349: | Rivi 349: | ||
function gotCoords(request) { | function gotCoords(request) { | ||
− | + | console.log(request); | |
if (typeof request.query.results != 'undefined') { | if (typeof request.query.results != 'undefined') { |
Nykyinen versio 5. marraskuuta 2024 kello 13.47