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

Update Layer.Raphael.js #14

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Update Layer.Raphael.js #14

wants to merge 1 commit into from

Conversation

pvinton
Copy link

@pvinton pvinton commented Oct 22, 2013

Added a new div under overlayPane for raphaelRoot. This allows raphael objects to "play nicely" with other non-Raphael SVG and VML objects that are also plotted on the map at the same time.

Without this extra div, non-Raphael objects have some erratic behavior: they sometimes disappear and/or are offset incorrectly, especially after panning and zooming.

Added a new div under overlayPane for raphaelRoot.  This allows raphael objects to "play nicely" with other non-Raphael SVG and VML objects that are also plotted on the map at the same time.  

Without this extra div, non-Raphael objects have some erratic behavior:  they sometimes disappear and/or are offset incorrectly, especially after panning and zooming.
@@ -50,7 +50,11 @@ R.Layer = L.Class.extend({
L.Map.include({
_initRaphaelRoot: function () {
if (!this._raphaelRoot) {
this._raphaelRoot = this._panes.overlayPane;
overlayPane = this._panes.overlayPane;
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

overlayPane is not defined please define it by adding var

@ghost
Copy link

ghost commented Jan 12, 2014

Btw, thanks for the fix. I spent a lot of time on this :) thank you

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

Successfully merging this pull request may close these issues.

1 participant