Merge pull request #149 from zeeZ/4b8b3083
Default zoom to 0, option in config.
This commit is contained in:
commit
9dd25dbe58
2 changed files with 2 additions and 1 deletions
|
|
@ -129,6 +129,7 @@ web:
|
||||||
# fillColor: "#FF0000"
|
# fillColor: "#FF0000"
|
||||||
# fillOpacity: 0.35
|
# fillOpacity: 0.35
|
||||||
|
|
||||||
|
defaultzoom: 0
|
||||||
defaultworld: world
|
defaultworld: world
|
||||||
worlds:
|
worlds:
|
||||||
- title: World
|
- title: World
|
||||||
|
|
|
||||||
|
|
@ -125,7 +125,7 @@ DynMap.prototype = {
|
||||||
.appendTo(container);
|
.appendTo(container);
|
||||||
|
|
||||||
var map = this.map = new google.maps.Map(mapContainer.get(0), {
|
var map = this.map = new google.maps.Map(mapContainer.get(0), {
|
||||||
zoom: 1,
|
zoom: me.options.defaultzoom || 0,
|
||||||
center: new google.maps.LatLng(0, 1),
|
center: new google.maps.LatLng(0, 1),
|
||||||
navigationControl: true,
|
navigationControl: true,
|
||||||
navigationControlOptions: {
|
navigationControlOptions: {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue