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

Tools doesn't work after I add my layers to the map? #6

Closed
dodriscoll opened this issue Jul 24, 2015 · 8 comments
Closed

Tools doesn't work after I add my layers to the map? #6

dodriscoll opened this issue Jul 24, 2015 · 8 comments

Comments

@dodriscoll
Copy link

Hi There,
This is a great tool and is exactly what I'm looking for but unfortunately I can't get it to work! It works fine when I add it to a map with just some generic baselayers but I have an image map service that is brought in using l.esri.imageMapService and then rendered using a raster function.

My image layer is in WGS 1984 Web Mercator Auxillary Sphere. Any advice would be greatly appreciated.

Thanks

@brandoncopeland
Copy link
Contributor

Can you provide a simple example to reproduce the issue?

@mikefedak
Copy link

I am have the same issue. It seems that the map service image overlays the polygon leaflet measure uses to collect results.

What I think happens is that esri-leaflet removes the image overlay from the mapservice and then re-adds it on top of the leaflet measure overlay.

@dodriscoll
Copy link
Author

Actually I have it working now. I'm not 100% sure what fixed it as I've been doing other stuff and then thought I'd just give it another go before the next set of testing. Possibly the main change since I last tried it is I upgraded to the new leaflet and new esri-leaflet libraries and this resolved the issue?

My image layers are called using the esri-leaflet plugin and it seemed to be only when I brought in the image layers that I have the problem so my best guess is they've made a change that was required.

It works anyway and that's the main thing! Thanks

@mikefedak
Copy link

dodriscoll, what versions of esri-leaflet and leaflet are you using?

@dodriscoll
Copy link
Author

Now using esri-leaflet-v-2.0.0-beta.5 and leaflet-1.0.0-b1.

@mikefedak
Copy link

Ok thanks, Unfortunately I have other dependencies that prevent me from upgrading.

@dodriscoll
Copy link
Author

Before I got this measure tool working again I did configure the draw tool to show the measurements as tool tip when drawing a line or an area. This worked before I upgraded if that would be any use.

@mikefedak
Copy link

Thanks, however I think I have a workaround; if I call bringToBack() on the esri-leaflet layer it seems to work.

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

3 participants