Commit crschmdt's data browser patch.
This commit is contained in:
parent
093aea72bd
commit
db30a423a8
9 changed files with 101 additions and 2 deletions
|
@ -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(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue