Linki
Poniżej znajdują się opcjonalne linki do dodatkowych funkcjonlaności (załączamy je do strony tylko gdy jest potrzeba):
<link rel="import" href="https://mapy.geoportal.gov.pl/iMapLite/api/cdn/2.0.0/imgp-map/imgp-map-layer-wms.html"> <link rel="import" href="https://mapy.geoportal.gov.pl/iMapLite/api/cdn/2.0.0/imgp-map/imgp-map-layer-geojson.html"> <link rel="import" href="https://mapy.geoportal.gov.pl/iMapLite/api/cdn/2.0.0/imgp-map/imgp-map-layer-cluster.html"> <link rel="import" href="https://mapy.geoportal.gov.pl/iMapLite/api/cdn/2.0.0/imgp-map/imgp-map-layer-marker.html"> <link rel="import" href="https://mapy.geoportal.gov.pl/iMapLite/api/cdn/2.0.0/imgp-map/imgp-map-layer-tile.html"> <link rel="import" href="https://mapy.geoportal.gov.pl/iMapLite/api/cdn/2.0.0/imgp-map/imgp-map-layer-esri-dynamic.html"> <link rel="import" href="https://mapy.geoportal.gov.pl/iMapLite/api/cdn/2.0.0/imgp-map/imgp-map-layer-esri-tiled.html"> <link rel="import" href="https://mapy.geoportal.gov.pl/iMapLite/api/cdn/2.0.0/imgp-map/imgp-map-layer-esri-feature.html"> <link rel="import" href="https://mapy.geoportal.gov.pl/iMapLite/api/cdn/2.0.0/imgp-map/imgp-map-layer-esri-cluster.html"> <link rel="import" href="https://mapy.geoportal.gov.pl/iMapLite/api/cdn/2.0.0/imgp-map-control-draw/imgp-map-control-draw.html"> <link rel="import" href="https://mapy.geoportal.gov.pl/iMapLite/api/cdn/2.0.0/imgp-map-control-measurement/imgp-map-control-measurement.html"> <link rel="import" href="https://mapy.geoportal.gov.pl/iMapLite/api/cdn/2.0.0/imgp-map-control-layers/imgp-map-control-layers.html"> <link rel="import" href="https://mapy.geoportal.gov.pl/iMapLite/api/cdn/2.0.0/imgp-map-control-fullextent/imgp-map-control-fullextent.html"> <link rel="import" href="https://mapy.geoportal.gov.pl/iMapLite/api/cdn/2.0.0/imgp-map-control-fullscreen/imgp-map-control-fullscreen.html"> <link rel="import" href="https://mapy.geoportal.gov.pl/iMapLite/api/cdn/2.0.0/imgp-map-control-g2search/imgp-map-control-g2search.html"> <link rel="import" href="https://mapy.geoportal.gov.pl/iMapLite/api/cdn/2.0.0/imgp-map-control-locate/imgp-map-control-locate.html"> <link rel="import" href="https://mapy.geoportal.gov.pl/iMapLite/api/cdn/2.0.0/imgp-map-control-button/imgp-map-control-button.html"> <link rel="import" href="https://mapy.geoportal.gov.pl/iMapLite/api/cdn/2.0.0/imgp-map-control-html/imgp-map-control-html.html"> <link rel="import" href="https://mapy.geoportal.gov.pl/iMapLite/api/cdn/2.0.0/imgp-map-control-html/imgp-map-control-logo.html"> <link rel="import" href="https://mapy.geoportal.gov.pl/iMapLite/api/cdn/2.0.0/imgp-map-control-zoom/imgp-map-control-zoom.html">
Obsługa starszych wersji przeglądarek tj. nie obsługujących ECMAScript w wersji 6 wymaga zastosowania API skompilowanego zgodnie z ECMAScript w wersji 5
Użycie API zgodnego z ECMAScript 5 wymaga zastosowania następujących ścieżek do api i komponentów:
https://mapy.geoportal.gov.pl/iMapLite/api/cdn/es5/zamiast dotychczas:
https://mapy.geoportal.gov.pl/iMapLite/api/cdn/
Na przykład ścieżki:
<script src="https://mapy.geoportal.gov.pl/iMapLite/api/cdn/2.0.0/imgp-map/imap-lite-api.js"></script> <link rel="import" href="https://mapy.geoportal.gov.pl/iMapLite/api/cdn/2.0.0/imgp-map/imgp-map-layer-geojson.html">trzeba zamienić na:
<script src="https://mapy.geoportal.gov.pl/iMapLite/api/cdn/es5/2.0.0/imgp-map/imap-lite-api.js"></script> <link rel="import" href="https://mapy.geoportal.gov.pl/iMapLite/api/cdn/es5/2.0.0/imgp-map/imgp-map-layer-geojson.html">