[Users] Adding custom Action...
Alexandre Dube
adube at mapgears.com
Mon Jun 13 19:28:12 CEST 2011
Hi,
Yes, it's possible. You could create your own OpenLayers.Control
with a click handler like the one in this example [1] and add it using a
GeoExt.Action like in that example [2]. What the control should do is
completely up to you.
HTH,
Alexandre
[1]
http://dev.openlayers.org/releases/OpenLayers-2.10/examples/click-handler.html
[2] http://api.geoext.org/1.0/examples/toolbar.html
On 11-06-13 11:58 AM, Paul james wrote:
> Hello...
> I have a GeoExt toolbar... I´d like to add a button that show an ALERT
> window with Coordinate when the user click on map...
> Example: User select that custom tool on toolbar, click on map and it
> shows the Alert "Lat : 30 Long 50"
> Is it possible?
> Thanks
>
>
> _______________________________________________
> Users mailing list
> Users at geoext.org
> http://www.geoext.org/cgi-bin/mailman/listinfo/users
--
Alexandre Dubé
Mapgears
www.mapgears.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.geoext.org/pipermail/users/attachments/20110613/ed984e6b/attachment.htm
More information about the Users
mailing list