mirror of
https://github.com/webbukkit/dynmap.git
synced 2024-11-24 03:05:28 +01:00
Fix selectWorld typo when world is a string
This commit is contained in:
parent
d24857ca64
commit
bb3d5e240c
@ -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…
Reference in New Issue
Block a user