Changeset 5197 in ntrip for trunk/BNC/src/map/OpenStreetMaps/index.html
- Timestamp:
- Jun 9, 2013, 5:02:52 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/map/OpenStreetMaps/index.html
r5196 r5197 16 16 <script> 17 17 function initialize(lat, lon) { 18 map = new OpenLayers.Map("basicMap"); 18 map = new OpenLayers.Map("basicMap", 19 {controls:[ 20 new OpenLayers.Control.Navigation(), 21 new OpenLayers.Control.PanZoomBar()]}); 19 22 20 23 var mapnik = new OpenLayers.Layer.OSM(); … … 27 30 28 31 var markers = new OpenLayers.Layer.Markers("Markers"); 29 var size = new OpenLayers.Size(40,40); 30 var offset = new OpenLayers.Pixel(-size.w/2, -size.h/2); 31 var icon = new OpenLayers.Icon('../html/crosshair.png', size, offset); 32 var size = new OpenLayers.Size(40,40); 33 var offset = new OpenLayers.Pixel(-size.w/2, -size.h/2); 34 var icon = new OpenLayers.Icon('../html/crosshair.png', size, offset); 35 32 36 markers.addMarker(new OpenLayers.Marker(position, icon)); 33 37
Note:
See TracChangeset
for help on using the changeset viewer.