Changeset 9422 in ntrip for trunk/BNC/src/map/map_osm.html


Ignore:
Timestamp:
May 6, 2021, 9:44:33 PM (3 years ago)
Author:
stuerze
Message:

some OSM updates to force https usage and a changed crossOriginKeyword

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/map/map_osm.html

    r9243 r9422  
    1212    </style>
    1313
    14     <script src="http://openlayers.org/api/OpenLayers.js" ></script>
     14    <script src="https://openlayers.org/api/OpenLayers.js" ></script>
    1515
    1616    <script>
     
    4040        zoom           = 0;
    4141
    42         map.addLayer(new OpenLayers.Layer.OSM());
     42        map.addLayer(new OpenLayers.Layer.OSM("OpenStreetMap",
     43                    // Official OSM tileset as forced HTTPS URLs
     44                    [   'https://a.tile.openstreetmap.de/${z}/${x}/${y}.png',
     45                        'https://b.tile.openstreetmap.de/${z}/${x}/${y}.png',
     46                        'https://c.tile.openstreetmap.de/${z}/${x}/${y}.png'
     47                    ],{tileOptions : {crossOriginKeyword: null}}));
     48
    4349        var position = new OpenLayers.LonLat(lon, lat).transform(fromProjection, toProjection);
    4450
Note: See TracChangeset for help on using the changeset viewer.