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

Using custom basemap styles #1259

Closed
zbubric opened this issue Feb 2, 2021 · 6 comments
Closed

Using custom basemap styles #1259

zbubric opened this issue Feb 2, 2021 · 6 comments

Comments

@zbubric
Copy link

zbubric commented Feb 2, 2021

Is your feature request related to a problem? Please describe.
I have a project based on esri-leaflet and would like to use view as arcgis:Imagery (containing both satelite image as well as street routes and names). As far as I can understand, there are three ‘Imagery’ styles of leaflet maps bit none of them contains street grid/names.

Describe the solution you'd like
Option to fine-tune basemap layers used in leaflet (e.g. Possibillity to define composite basemap layers and custom styles).

Describe alternatives you've considered
I presume that street map can be added as feature layer but, on some projects, it is actually a base layer without need to be able to disable/enable street grid (or community borders or whatever)

Additional context
I actually wanted just to ask a question on how to achieve this but, since there is bug/feature direction I didn’t want to post it as a bug. I’m quite new to esri so, if answer to my question is already mentioned in some docs, please, point me to a right direction.

@pmacMaps
Copy link
Contributor

pmacMaps commented Feb 2, 2021

Not sure if it's what you're looking for, but I have a CodePen demo where I use the L.featureGroup to create a basemap that contains imagery and streets.

With this new ArcGIS Platform, if Esri Leaflet will natively support vector basemaps, there is a arcgis-imagery-labels that is available in the Esri JS API. But Esri staff will need to comment on this.

@gavinr
Copy link
Contributor

gavinr commented Feb 3, 2021

I think what you're asking can be achieved through esri-leaflet-vector:

  1. Imagery with labels: https://jsbin.com/menizes/2/edit?html,output
  2. Imagery, no labels: https://jsbin.com/menizes/3/edit?html,output
  3. Labels only: https://jsbin.com/menizes/5/edit?html,output

We have not done a good job documenting all the basemap names that you can pass via L.esri.Vector.vectorBasemapLayer(...) - I'm sorry for that, we will add those soon. Here they are for now:

  1. ArcGIS:Imagery
  2. ArcGIS:Imagery:Standard
  3. ArcGIS:Imagery:Labels
  4. ArcGIS:LightGray
  5. ArcGIS:LightGray:Base
  6. ArcGIS:LightGray:Labels
  7. ArcGIS:DarkGray
  8. ArcGIS:DarkGray:Base
  9. ArcGIS:DarkGray:Labels
  10. ArcGIS:Navigation
  11. ArcGIS:NavigationNight
  12. ArcGIS:Streets
  13. ArcGIS:StreetsNight
  14. ArcGIS:StreetsRelief
  15. ArcGIS:Topographic
  16. ArcGIS:Oceans
  17. ArcGIS:Oceans:Base
  18. ArcGIS:Oceans:Labels
  19. OSM:Standard
  20. OSM:StandardRelief
  21. OSM:StandardRelief:Base
  22. OSM:Streets
  23. OSM:StreetsRelief
  24. OSM:LightGray
  25. OSM:LightGray:Base
  26. OSM:LightGray:Labels
  27. OSM:DarkGray
  28. OSM-DarkGray:Base
  29. OSM-DarkGray:Labels
  30. ArcGIS:Terrain
  31. ArcGIS:Terrain:Base
  32. ArcGIS:Terrain:Detail
  33. ArcGIS:Community
  34. ArcGIS:ChartedTerritory
  35. ArcGIS:ColoredPencil
  36. ArcGIS:Nova
  37. ArcGIS:ModernAntique
  38. ArcGIS:Midcentury
  39. ArcGIS:Newspaper
  40. ArcGIS:Hillshade:Light
  41. ArcGIS:Hillshade:Dark

@zbubric
Copy link
Author

zbubric commented Feb 3, 2021

Hi @gavinr

First of all, thank you for a prompt reaction and provided examples, I will dig into them.
However, when reading through #1160 I found that leaflet-vector is officially deprecated and strongly not recommended for use in production?

@jwasilgeo
Copy link
Contributor

@zbubric sorry for any confusion. We are reviewing and making sure our documentation and guidance is updated soon. We are not deprecating the esri-leaflet-vector plugin and just released a new version (v3) which @gavinr is referring to above.

@zbubric
Copy link
Author

zbubric commented Feb 4, 2021

@zbubric sorry for any confusion. We are reviewing and making sure our documentation and guidance is updated soon. We are not deprecating the esri-leaflet-vector plugin and just released a new version (v3) which @gavinr is referring to above.

Thx for clarification. I'll try it!

@jwasilgeo
Copy link
Contributor

@zbubric thanks for your patience here. In case it helps continue to clarify anything for you, we just refreshed the docs pages and changelogs to reflect what's new at esri-leaflet v3.

Live examples and API docs:

Related repo changelogs:

And check out the ArcGIS for Developers pages focusing on esri-leaflet:

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

4 participants