Changeset 5196 in ntrip for trunk/BNC/src/map/OpenStreetMaps/index.html
- Timestamp:
- Jun 9, 2013, 4:46:43 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/map/OpenStreetMaps/index.html
r5195 r5196 28 28 var markers = new OpenLayers.Layer.Markers("Markers"); 29 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(' http://www.openlayers.org/dev/img/marker.png',size,offset);30 var offset = new OpenLayers.Pixel(-size.w/2, -size.h/2); 31 var icon = new OpenLayers.Icon('../html/crosshair.png', size, offset); 32 32 markers.addMarker(new OpenLayers.Marker(position, icon)); 33 33
Note:
See TracChangeset
for help on using the changeset viewer.