Trying to serve OSM tiles over https
This commit is contained in:
parent
b9e6a5cfa2
commit
71e1a0214f
1 changed files with 9 additions and 1 deletions
|
@ -131,7 +131,15 @@
|
|||
</div><script src="js/OpenLayers.js"></script>
|
||||
<script>
|
||||
map = new OpenLayers.Map("mapdiv");
|
||||
map.addLayer(new OpenLayers.Layer.OSM());
|
||||
map.addLayer(new OpenLayers.Layer.OSM(
|
||||
"OpenStreetMap",
|
||||
// Official OSM tileset as protocol-independent URLs
|
||||
[
|
||||
'//a.tile.openstreetmap.org/${z}/${x}/${y}.png',
|
||||
'//b.tile.openstreetmap.org/${z}/${x}/${y}.png',
|
||||
'//c.tile.openstreetmap.org/${z}/${x}/${y}.png'
|
||||
],
|
||||
null)));
|
||||
|
||||
var markers = new OpenLayers.Layer.Markers( "Markers" );
|
||||
map.addLayer(markers);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue