GeoExt and OpenLayers - Zoom Mode
Aug 3, 2010 • @dcodernz
Just playing around with GeoExt and OpenLayers, I figured out how to easily change the control to a zoom rectangle with minimal changes:
First create the normal and the custom control with:
Then all you need is a button or better Action object, which adds the appropriate control to the map:
home
about
++learn
tags
14.04 Android Announcement Apache2 Asus BASH Bitcoin Blogging Bounty Build CMS CSS Collections Commands Competition Compute Computer Conference Configuration Crypto Currency Deployment Development Digital Distributed Education Email Factory GIS Generics Google Gradle HTML5 HTTP Hey Howto Ideas Implement Installation Java JavaScript Jekyll Kernel Language Laptop Learn++ Linux Mobile Money Open Open Source P2P PHP Plugins PostGIS Power Programming Project RT2800USB Review Science Server Settings Source Student Support Tagging This Thoughts Tool Tricks Ubuntu Universal Video VirtualHost Web Windows Wireless Wlan bing bitcoin computer contains cp crypto currency database duckduckgo engine google jQuery middleware mysql optimization philosophy postgresql science search seo tips tricks value
Comments