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
problem: clicking on the newly created marker removes it instead of popping up
the information, for example:
Longitude: -2,94 Latitude: 33,94
Remove
My workaround:
have the _createNewMarker return L.marker();
OR
in the options put single quotes around the values so that they are strings:
//leaflet marker type
markerType: 'L.marker',
//leaflet marker properties
markerProps: '{}'
and in _createNewMarker return the evaluated string...
_createNewMarker: function() {
// return this.options.markerType(null, this.options.markerProps);
return eval(this.options.markerType + '(null,' + this.options.markerProps + ')');
}
The text was updated successfully, but these errors were encountered:
problem: clicking on the newly created marker removes it instead of popping up
the information, for example:
Longitude: -2,94 Latitude: 33,94
Remove
My workaround:
OR
//leaflet marker type
markerType: 'L.marker',
//leaflet marker properties
markerProps: '{}'
and in _createNewMarker return the evaluated string...
_createNewMarker: function() {
// return this.options.markerType(null, this.options.markerProps);
return eval(this.options.markerType + '(null,' + this.options.markerProps + ')');
}
The text was updated successfully, but these errors were encountered: