OpenLayers OpenLayers

ArgParser Control


The ArgParser is an OpenLayers Control that adds location bar querystring parsing functionality to an OpenLayers Map.

When added to a Map control, on a page load/refresh, the Map will automatically take the href string and parse it for lon, lat, zoom, and layers information.

Example:

http://www.openlayers.org/dev/examples/controls.html?lat=-13.08191&lon=-38.73143&zoom=12&layers=0BF