-
Notifications
You must be signed in to change notification settings - Fork 4
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
Load layers after map style is loaded #86
Comments
@moshthepitt @kahama94 What are the reproduction steps for this? I've removed the Are there specific steps I should take to reproduce this issue? Is there are a particular layer / focus area? |
@cKellyDesign Sorry I never included some documentation to replicate the issue. this PR fixes the issue
|
Oh boy, thanks @kahama94 I've been able to reproduce what you're describing and what your screencast shows. It looks like the Gisida-React.Map component is being unmounted because the GisidaWrapper internal state of cc @moshthepitt |
Is there a reason the two conditionals in GisidaWrapper.componentWillRecieveProps are separated instead of being and |
@kahama94 @moshthepitt are either of the errors described above breaking the page? If onaio/gisida-react#112 looks good then I can merge / tag a new |
@moshthepitt @kahama94 - This may be addressed at 4ff5266 on PR #133, I still get errors about unmounting if I navigate away before the style is done loading, but at least it's just a warning and isn't breaking the page. |
Even after implementing
myMap.on('style.load')
to ensure map style is fully loaded the map may not be fully ready to load layers i.e styles haven't fully loaded. This has been pointed out as shown below mapbox/mapbox-gl-js#2268The current work around is creating an arbitrary delay to ensure map has loaded styles before adding the layers which may fail with extreme slow internet speeds.
The text was updated successfully, but these errors were encountered: