Fix selectWorld typo when world is a string
This commit is contained in:
parent
74988f73e3
commit
ab783989b6
1 changed files with 1 additions and 1 deletions
|
|
@ -569,7 +569,7 @@ DynMap.prototype = {
|
||||||
},
|
},
|
||||||
selectWorldAndPan: function(world, location, completed) {
|
selectWorldAndPan: function(world, location, completed) {
|
||||||
var me = this;
|
var me = this;
|
||||||
if (typeof(world) === 'String') { world = me.worlds[world]; }
|
if (typeof(world) === 'string') { world = me.worlds[world]; }
|
||||||
if (me.world === world) {
|
if (me.world === world) {
|
||||||
if(location) {
|
if(location) {
|
||||||
var latlng = me.maptype.getProjection().fromLocationToLatLng(location);
|
var latlng = me.maptype.getProjection().fromLocationToLatLng(location);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue