Controls each create their own div, which is then individually added to the viewPortDiv directly, rather than to a Controls Div. This may fix some issues with event handling of lower layers, and may be related to #36. It also prevents the need for the markers hack a couple commits back.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@206 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
+2
-2
@@ -21,9 +21,9 @@
|
||||
|
||||
map.addLayer(layer);
|
||||
var markers = new OpenLayers.Layer.Marker( "Markers" );
|
||||
map.addLayer(markers, 300);
|
||||
map.addLayer(markers);
|
||||
var newl = new OpenLayers.Layer.Text( "text", "./textfile.txt" );
|
||||
map.addLayer(newl,301);
|
||||
map.addLayer(newl);
|
||||
var icon = new OpenLayers.Icon('http://boston.openguides.org/markers/AQUA.png',new OpenLayers.Size(10,17));
|
||||
markers.addMarker(new OpenLayers.Marker(icon, new OpenLayers.LonLat(0,0)));
|
||||
markers.addMarker(new OpenLayers.Marker(icon, new OpenLayers.LonLat(0,45)));
|
||||
|
||||
Reference in New Issue
Block a user