[OpenLayers-Users] Vector feature layer stays the same size on zoom following a mouse drag in Internet Explorer

palewire ben.welsh at gmail.com
Fri Feb 13 19:24:33 EST 2009


I have a basic Google Maps layer with this sort of polygon put on top. It
works great in FF and Safari. And fine in IE6 -- that is until the user
drags the map to the left or right and then zooms. In that circumstance the
polygon stays the same size on the map regardless of what zoom you're at,
effectively not zooming.

If you just load and zoom right away, it's fine. But for some reason the
mouse drag seems to screw it up. Any idea why?

// Load Polygon layer
var wkt_f = new OpenLayers.Format.WKT();
var polygon = wkt_f.read('{{ geodjango_obj.polygon.wkt }}');
var polygon_vector = new OpenLayers.Layer.Vector("Polygon", {styleMap:
styleMap});
polygon_vector.addFeatures([polygon]);
map.addLayer(polygon_vector);

// Controls for the map.
map.addControl(new OpenLayers.Control.PanZoom());
map.addControl(new OpenLayers.Control.LayerSwitcher())
var movemap = new OpenLayers.Control.Navigation({'zoomWheelEnabled':
false});
map.addControl(movemap);
movemap.disableZoomWheel();
movemap.activate();

Per usual, lifelines appreciated.

Thanks.
-- 
View this message in context: http://n2.nabble.com/Vector-feature-layer-stays-the-same-size-on-zoom-following-a-mouse-drag-in-Internet-Explorer-tp2324541p2324541.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.




More information about the Users mailing list