You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 27, 2023. It is now read-only.
Since the map is initialized in the following way:
functionmap_init(){varmap=L.map('w0',{});
this make map unavailable in global scope therefore is impossible to operate via javascript on the map (ie change the center)
Something, at javascript level, like this should work.
I think layers/* (I checked only some of them) suffer from same issue.
In the files I checked is sufficient to remove var in front of the javascript variable declaration.
form
$js = "var $name = $js;"
to
$js = "$name = $js;"
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Since the map is initialized in the following way:
this make map unavailable in global scope therefore is impossible to operate via javascript on the map (ie change the center)
Something, at javascript level, like this should work.
So in the php code in Map.php:
line 103 from
to
and line 122
to
The text was updated successfully, but these errors were encountered: