[OpenLayers-Users] Vectors on the move

Christopher Schmidt crschmidt at metacarta.com
Thu Apr 17 06:34:23 EDT 2008


On Thu, Apr 17, 2008 at 03:02:42PM +1000, bradleyspencer wrote:
> Chris,
> 
> You are correct. I am using a Handle.Box control and the loX, LoY, HiX, HiY
> is available which I then simply use to draw into a temporary vector layer.
> 
> This leaves me with a blue box over the area I selected.
> 
> So I am already doing as you suggest I believe. My snippet of code is as
> follows:
> 
> 				// OK now draw out the drag box as vectors
> 				drawSelectBox(loX,loY,hiX,hiY) 	// this just draws a box
> 		}
> 	});
> 	map.addControl(control);
> 
> However, after I have finished doing what I want any vertical pan movement
> 'floats' the vectors relative to the base map and the selected features.

Are you using Google Maps as a baselayer, and not using
sphericalMercator ? (Also, you didn't provie the code to drawSelectBox,
so I can't actually tell *what* you're doing. :)) 

Regards,
-- 
Christopher Schmidt
MetaCarta



More information about the Users mailing list