OpenLayers OpenLayers

Changeset 3291

Show
Ignore:
Timestamp:
06/07/07 20:17:31 (1 year ago)
Author:
jrf
Message:

adding vector layer to wrap the world to see what will happen

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • sandbox/jrf/wraptheworld/examples/wrapDateLine.html

    r3279 r3291  
    1313        var map; 
    1414        function init(){ 
     15        OpenLayers.ProxyHost="proxy.cgi/?url="; 
     16 
    1517            map = new OpenLayers.Map( 'map', {maxResolution: 1.40625} ); 
    1618            var mapserv = new OpenLayers.Layer.MapServer( "OpenLayers Basic",  
     
    3133                {wrapDateLine: true, reproject: false}); 
    3234 
     35            var wfs = new OpenLayers.Layer.WFS("WFS", "http://featureserver.org/featureserver.cgi/scribble?format=WFS", {maxfeatures: "50"}, {extractAttributes: true}); 
     36            var vectors = new OpenLayers.Layer.Vector("Vector Layer"); 
     37            map.addControl(new OpenLayers.Control.EditingToolbar(vectors));  
     38 
    3339            /* TMS is broken, too */ 
    3440            tms = new OpenLayers.Layer.TMS( "OpenStreetMap",  
     
    4450                     wrapDateLine: true}); 
    4551         
    46             map.addLayers([mapserv, kamap, wms]); 
     52            map.addLayers([mapserv, kamap, wms, vectors, wfs]); 
    4753            map.addControl(new OpenLayers.Control.LayerSwitcher()); 
    4854            map.addControl(new OpenLayers.Control.MousePosition());