Control/ArgParser

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: (Note: this link doesn't actually contain an example of 'ArgParser')

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