Skip to content
Snippets Groups Projects
Commit bb5eb429 authored by Antoine Lucas's avatar Antoine Lucas ⛷️
Browse files

Update HowToVisitPSS.md

parent 840da4b7
No related branches found
No related tags found
No related merge requests found
<script src="http://www.openlayers.org/api/OpenLayers.js">
</script>
<script>
map = new OpenLayers.Map("mapdiv");
map.addLayer(new OpenLayers.Layer.OSM());
var lonLat = new OpenLayers.LonLat( 2.37995 ,48.82754 )
.transform(
new OpenLayers.Projection("EPSG:4326"), // transform from WGS 1984
map.getProjectionObject() // to Spherical Mercator Projection
);
var zoom=16;
var markers = new OpenLayers.Layer.Markers( "Markers" );
map.addLayer(markers);
markers.addMarker(new OpenLayers.Marker(lonLat)); ![](lmk.png)
map.setCenter (lonLat, zoom);
</script>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment