Posts Topics Forums Images
Search videos from message boards Videos Search messages from microblogs Microblogs Search messages from imdb.com Imdb Search messages from yuku.com Yuku Search messages from lefora.com (free forums) Lefora
My account: Login | Sign Up
Loading... 

Thread: Button for ZoomBox / Can't use the Shift key

Started 2 months, 2 weeks ago by ABB
Hello, Just started to code an application using OpenLayers and i must create a button/div to use the rectangle zoom box. If the users pushes that button, then the next mouse drag will trigger the zoom box and the zoom action. I searched hints in the code and found nothing, i guess my JS skills aren't good enough to understand what needs to be done in order to achieve this. I just ...
Site: OSGeo.org board  OSGeo.org board - site profile
Forum: OpenLayers Users  OpenLayers Users - forum profile
Total authors: 1 author
Total thread posts: 2 posts
Thread activity: no new posts during last week
Domain info for: osgeo.org

Other posts in this thread:

ABB replied 2 months, 2 weeks ago
Sorry for the double post. Here is code sample that makes partially what i want: var control = new OpenLayers.Control(); OpenLayers.Util.extend(co ntrol, { draw: function () { this.box = new OpenLayers.Handler.Box(control, {"done": this.notice}, {keyMask: null}); this.box.activate(); }, notice: function (bounds) { ...

 

Top contributing authors

Name
Posts
ABB
2
user's latest post:
Button for ZoomBox / Can't...
Published (2009-09-24 15:02:00)
Sorry for the double post. Here is code sample that makes partially what i want: var control = new OpenLayers.Control(); OpenLayers.Util.extend(control, { draw: function () { this.box = new OpenLayers.Handler.Box(control, {"done": this.notice}, {keyMask: null}); this.box.activate(); }, notice: function (bounds) { alert(bounds); } }); this.map.addControl(control); I saw in the Handler class that the keyMask has 3 possible...

Related threads on "OSGeo.org board":

Related threads on other sites:

Thread profile page for "Button for ZoomBox / Can't use the Shift key" on http://www.osgeo.org. This report page is a snippet summary view from a single thread "Button for ZoomBox / Can't use the Shift key", located on the Message Board at http://www.osgeo.org. This thread profile page shows the thread statistics for: Total Authors, Total Thread Posts, and Thread Activity