dynmeth / RaphaelLayer

Raphael overlay for Leaflet maps
MIT License
80 stars 25 forks source link

Compatibility issue with Leaflet's vector layer in overlayPane #6

Closed ghost closed 11 years ago

ghost commented 11 years ago

When I added L.Polyline and R.Marker two SVG containers - each for every layer - are put inside <div class="leaflet-overlay-pane"></div> (called overlayPane)

In this situation when I move my view, my polyline looses it's position.

2013-01-06-211854_1920x1080_scrot

I have suppressed this issue by changing line 69 in Layer.Raphael.js from root = this._raphaelRoot; to root = this._raphaelRoot.firstChild; in my project.

dbhowell commented 11 years ago

Hey Codename0, thanks for the contribution. By the way, your map looks great.

This is something I was hoping to fix in the next update, thanks!

ghost commented 11 years ago

Despite this solution I found, additional Raphael layer had really slowed down the browser, so I gave up on it. If only I haven't so large map (it fills browser window) and two tilelayers (they are already significantly slowing zooming).

dbhowell commented 11 years ago

Thanks for the update!