leaflet-extras / leaflet-providers

An extension to Leaflet that contains configurations for various free tile providers.
https://leaflet-extras.github.io/leaflet-providers/preview/
BSD 2-Clause "Simplified" License
2.16k stars 673 forks source link

Adding USGS The National Map basemaps #366

Closed sdbowman closed 4 years ago

sdbowman commented 4 years ago

Please add the USGS The National Map topographic, imagery, and imagery + topographic basemaps to the providers list. The additional code for leaflet-providers.js is below:

USGSTNM: { url: 'https://basemap.nationalmap.gov/arcgis/rest/services/USGSTopo/MapServer/tile/{z}/{y}/{x}', options: { maxZoom: 20, attribution: 'U.S. Department of the Interior | U.S. Geological Survey' }, variants: { USTopo: {}, USImagery: { url: 'https://basemap.nationalmap.gov/arcgis/rest/services/USGSImageryOnly/MapServer/tile/{z}/{y}/{x}' }, USImageryTopo: { url: 'https://basemap.nationalmap.gov/arcgis/rest/services/USGSImageryTopo/MapServer/tile/{z}/{y}/{x}' } } }

brunob commented 4 years ago

Feel free to provide a PR for that, but before check the TOS of the provider please.

sdbowman commented 4 years ago

There are no restrictions on the use of these public domain U.S. Government services ( https://www.usgs.gov/faqs/what-are-terms-uselicensing-map-services-and-data-national-map?qt-news_science_products=0#qt-news_science_products). Do you need anything else? Thanks, Steve.

Steve D. Bowman, Ph.D., P.E., P.G. Geologic Hazards Program Manager Utah Geological Survey 1594 West North Temple, P.O. Box 146100 Salt Lake City, Utah 84114-6100 (801) 537-3304 https://geology.utah.gov/

On Fri, Aug 28, 2020 at 8:58 AM b_b notifications@github.com wrote:

Feel free to provide a PR for that, but before check the TOS of the provider please.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/leaflet-extras/leaflet-providers/issues/366#issuecomment-682666196, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHXU6PL5JG6HB4LKA7MI3YTSC7A2RANCNFSM4QNMTUPQ .

brunob commented 4 years ago

Thx for the feeback @sdbowman :) Would you like to send a PR or do you prefer i do that for you ?

By the way, nice to see that this project is used by geological users, i've been working around this topic for https://github.com/geodiversite/geodiversite/ and playing with this kind of data on https://tiles.kupaia.fr/ :)

sdbowman commented 4 years ago

Would you mind creating the PR this time so I can see exactly what you need that I can use as a sample for next time? Thanks for creating the leaflet-providers plugin, it really makes using Leaflet simple with multiple data sources. We are working to develop a new air photo web app (https://imagery.geology.utah.gov/) to replace our legacy app (https://geodata.geology.utah.gov/imagery/) and will use Leaflet for the mapping part. The new system uses ResourceSpace that includes OpenLayers2, but that is getting replaced by Leaflet mid-September. Only about half of the air photos have been ported over to the new system. Thanks again, Steve.

Steve D. Bowman, Ph.D., P.E., P.G. Geologic Hazards Program Manager Utah Geological Survey 1594 West North Temple, P.O. Box 146100 Salt Lake City, Utah 84114-6100 (801) 537-3304 https://geology.utah.gov/

On Mon, Aug 31, 2020 at 7:17 AM b_b notifications@github.com wrote:

Thx for the feeback @sdbowman https://github.com/sdbowman :) Would you like to send a PR or do you prefer i do that for you ?

By the way, nice to see that this project is used by geological users, i've been working around this topic for https://github.com/geodiversite/geodiversite/ and playing with this kind of data on https://tiles.kupaia.fr/ :)

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/leaflet-extras/leaflet-providers/issues/366#issuecomment-683771297, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHXU6PKLBN3R5LGJATCELDDSDOPIHANCNFSM4QNMTUPQ .

brunob commented 4 years ago

Ok, i'll use USGS for base name and a simpler credits as mentioned on https://www.usgs.gov/information-policies-and-instructions/copyrights-and-credits

sdbowman commented 4 years ago

Thanks for adding in those basemaps! Steve

Steve D. Bowman, Ph.D., P.E., P.G. Geologic Hazards Program Manager Utah Geological Survey 1594 West North Temple, P.O. Box 146100 Salt Lake City, Utah 84114-6100 (801) 537-3304 https://geology.utah.gov/

On Wed, Oct 21, 2020 at 4:19 AM b_b notifications@github.com wrote:

Closed #366 https://github.com/leaflet-extras/leaflet-providers/issues/366 via #367 https://github.com/leaflet-extras/leaflet-providers/pull/367.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/leaflet-extras/leaflet-providers/issues/366#event-3903064835, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHXU6PJT2H7BC5IAMXF3T43SL2YSLANCNFSM4QNMTUPQ .

smileBeda commented 2 years ago

They all return 404 error, even on the provider preview page.

brunob commented 2 years ago

@sdbowman do you have any infos about this ?

sdbowman commented 2 years ago

Seems to be working now. Maybe an issue on their end?

On Wednesday, September 14, 2022, b_b @.***> wrote:

@sdbowman https://github.com/sdbowman do you have any infos about this ?

— Reply to this email directly, view it on GitHub https://github.com/leaflet-extras/leaflet-providers/issues/366#issuecomment-1247697404, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHXU6PI6JBZRKTN2U5R5SV3V6LGOLANCNFSM4QNMTUPQ . You are receiving this because you were mentioned.Message ID: @.***>

--

Steve D. Bowman, Ph.D., P.E., P.G. Geologic Hazards Program Manager Utah Geological Survey 1594 West North Temple, P.O. Box 146100 Salt Lake City, Utah 84114-6100 (801) 537-3304 https://geology.utah.gov/

brunob commented 2 years ago

Nice, thx for the feedback @sdbowman :)