[OpenLayers-Dev] draw rectangle over the map

Bart van den Eijnden (OSGIS) bartvde at osgis.nl
Fri Jun 25 02:59:07 EDT 2010


You should write your own control with a Box Handler, check the ZoomBox
control for an example.

Bart

>
> Hi,
>
> My requirement:
>
> I want to draw a rectangle over the google map using openlayers.
>
> After the user draws the rectangle, I should able to get the top left
> latitude and longitude  & bottom right latitude and longitude to query the
> database.
>
> Is that possible in openlayers?
>
> Thanks,
> Iswaria
> --
> View this message in context:
> http://osgeo-org.1803224.n2.nabble.com/draw-rectangle-over-the-map-tp5220565p5220565.html
> Sent from the OpenLayers Dev mailing list archive at Nabble.com.
> _______________________________________________
> Dev mailing list
> Dev at openlayers.org
> http://openlayers.org/mailman/listinfo/dev
>





More information about the Dev mailing list