Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Marker works in Leaflet v1.7.1, has undefined _renderer errors in Leaflet v1.9.4 #215

Open
mccart opened this issue Oct 2, 2023 · 0 comments

Comments

@mccart
Copy link

mccart commented Oct 2, 2023

Appears something may have changed under Leaflet's hood to break existing leaflet-editable Marker handling. Existing code using leaflet-editable marker works in Leaflet v1.7.1 but fails / does not work when upgraded to Leaflet v1.9.4 with undefined _renderer error in Leaflet code as shown below as soon as mouse is on map and fires repeatedly as mouse moves on map.

Anyone have any thoughts why or have fixes for this as I plan to revert back to v1.7.4 for now.

var Path = Layer.extend({
...
  	// @method redraw(): this
  	// Redraws the layer. Sometimes useful after you changed the coordinates that the path uses.
  	redraw: function () {
  		if (this._map) {
  			this._renderer._updatePath(this);   <--- undefined _renderer
  		}
  		return this;
  	},
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant