Changeset 5197 in ntrip


Ignore:
Timestamp:
Jun 9, 2013, 5:02:52 PM (9 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/map/OpenStreetMaps/index.html

    r5196 r5197  
    1616    <script>
    1717      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()]});
    1922
    2023        var mapnik         = new OpenLayers.Layer.OSM();
     
    2730
    2831        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
    3236        markers.addMarker(new OpenLayers.Marker(position, icon));
    3337       
Note: See TracChangeset for help on using the changeset viewer.