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

Include USA Topo Maps in L.esri.basemapLayer #736

Closed
ethoms-usgs opened this issue Jan 27, 2016 · 6 comments
Closed

Include USA Topo Maps in L.esri.basemapLayer #736

ethoms-usgs opened this issue Jan 27, 2016 · 6 comments

Comments

@ethoms-usgs
Copy link

Title pretty much says it all. How about a shortcut string to reference the USA Topo Maps basemap in L.esri.basemapLayer? To be clear:

http://usgs.maps.arcgis.com/home/item.html?id=931d892ac7a843d7ba29d085e0433465

New to esri-leaflet as of today and I am liking it!

@patrickarlt
Copy link
Contributor

@jgravois this seems like a great first time contributor issue if you could take the time to write up how to do it.

@jgravois
Copy link
Contributor

jgravois commented Feb 3, 2016

sure!

just as a reminder, we do this with inspiration from the folks at @yourfirstpr and hope to receive a patch from someone that is just getting started with contributing to open source. if you're interested, but need help getting started, please don't be shy!

the collection of basemaps we already support can be found here. an upstanding young citizen could use the USGS topographic service metadata to fill in the appropriate properties for an additional entry.

you'll need to confirm manually that the new basemap works as expected in a test application before submitting a Pull Request. if you're feeling spry, you can also update our test coverage here.

@phxpdx
Copy link

phxpdx commented Feb 4, 2016

I'll take a crack at it.

@ethoms-usgs
Copy link
Author

Ok! I found that file and figured that's where one would add to the
collection.

On Wed, Feb 3, 2016 at 9:59 AM, john gravois notifications@github.com
wrote:

sure!

just as a reminder, we do this with inspiration from the folks at
@yourfirstpr https://github.com/yourfirstpr and hope to receive a patch
from someone that is just getting started with contributing to open source.
if you're interested, but need help getting started
https://github.com/Esri/esri-leaflet#development-instructions, please
don't be shy!

the collection of basemaps we already support can be found here
https://github.com/Esri/esri-leaflet/blob/master/src/Layers/BasemapLayer.js#L11-L190.
an upstanding young citizen could use the USGS topographic service
metadata
http://services.arcgisonline.com/ArcGIS/rest/services/USA_Topo_Maps/MapServer
to fill in the appropriate properties for an additional entry.

test coverage isn't much, but an update here
https://github.com/Esri/esri-leaflet/blob/master/spec/Layers/BaseMapLayerSpec.js#L47-L54
would be appropriate.

additionally, you'd just want to make sure and confirm manually that the
new basemap works as expected in a test application before submitting a
Pull Request.


Reply to this email directly or view it on GitHub
#736 (comment).

Evan Thoms
US Geological Survey, Alaska Science Center
4210 University Drive, Anchorage, AK 99508
voice: 907-786-7409 fax: 907-786-7401
ethoms@usgs.gov

@jgravois
Copy link
Contributor

jgravois commented Feb 4, 2016

I'll take a crack at it.

awesome!

@jgravois
Copy link
Contributor

jgravois commented Mar 7, 2016

thank you @mattficke for the fix!

@phxpdx if you're interested/available to help, i created a new issue in our website repository (Esri/esri-leaflet-doc#19) to request help documenting the change to the API.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants