Commit crschmdt's data browser patch.

This commit is contained in:
Tom Hughes 2008-04-20 12:20:23 +00:00
parent 093aea72bd
commit db30a423a8
9 changed files with 101 additions and 2 deletions

View file

@ -7,9 +7,10 @@ OpenLayers._getScriptLocation = function () {
return "/openlayers/";
}
function createMap(divName) {
function createMap(divName, options) {
if (!options) { options = {} }
map = new OpenLayers.Map(divName, {
controls: [
controls: options.controls || [
new OpenLayers.Control.ArgParser(),
new OpenLayers.Control.Attribution(),
new OpenLayers.Control.LayerSwitcher(),