I am trying to configure OpenLayers so as not to display the vector layer just before starting the zoom and reappear after the zoom is complete. I have a portion of the end of the zoom already set as follows:
map = new OpenLayers.Map('map_element', { eventListeners: { "zoomend": mapEvent}}); function mapEvent(event) { if(event.type == "zoomend") { hide_vector_layer(); } }
But I do not see any event listeners to start increasing in the documentation. There is a "movestart" that covers moving, panning, and zooming. Unfortunately, I cannot use "movestart" because I do not want the layer to disappear during panning. You might think that there will be a "zoomstart", since there is a "zoomend".
The reason I'm trying to do this is because I donβt like the way the vector layer scales at a different speed when using Google Maps as the base layer. It doesnβt look right, it seems that all functions are inaccurate, even if they land in the right place after scaling is complete.
Any suggestions?
javascript google-maps zooming openlayers
renosis
source share