Merge pull request #3499 from SNDST00M/hotfix-selectworld-string

Fix selectWorld typo when world is a string
This commit is contained in:
mikeprimm 2021-10-02 13:39:02 -05:00 committed by GitHub
commit 296186fba3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -569,7 +569,7 @@ DynMap.prototype = {
},
selectWorldAndPan: function(world, location, completed) {
var me = this;
if (typeof(world) === 'String') { world = me.worlds[world]; }
if (typeof(world) === 'string') { world = me.worlds[world]; }
if (me.world === world) {
if(location) {
var latlng = me.maptype.getProjection().fromLocationToLatLng(location);