From 0343f5a35e2fdfbf1144683f6b627056a25478f5 Mon Sep 17 00:00:00 2001 From: crschmidt Date: Sat, 29 Jul 2006 12:28:20 +0000 Subject: [PATCH] The old Marker wasn't displaying in the right position when you zoomed out -- no Icon.Offset was being set. (The code was copy pasted from before such a thing existed.) Change to the OpenLayers marker style, instead of some random image I grabbed off a website -- using the default icon means our offset is set right, so the markers end up in the right place. git-svn-id: http://svn.openlayers.org/trunk/openlayers@1038 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- examples/ve.html | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/examples/ve.html b/examples/ve.html index f7adad124b..7c1d9289a6 100644 --- a/examples/ve.html +++ b/examples/ve.html @@ -36,8 +36,7 @@ function add() { - var icon = new OpenLayers.Icon('http://boston.openguides.org/markers/AQUA.png',new OpenLayers.Size(10,17)); - marker = new OpenLayers.Marker(new OpenLayers.LonLat(2, 41), icon); + marker = new OpenLayers.Marker(new OpenLayers.LonLat(2, 41)); markers.addMarker(marker); }