Changeset 9422 in ntrip
- Timestamp:
- May 6, 2021, 9:44:33 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/map/map_osm.html
r9243 r9422 12 12 </style> 13 13 14 <script src="http ://openlayers.org/api/OpenLayers.js" ></script>14 <script src="https://openlayers.org/api/OpenLayers.js" ></script> 15 15 16 16 <script> … … 40 40 zoom = 0; 41 41 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 43 49 var position = new OpenLayers.LonLat(lon, lat).transform(fromProjection, toProjection); 44 50
Note:
See TracChangeset
for help on using the changeset viewer.