question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Imagery provider API consistency

See original GitHub issue

From #2814, @mramato:

It is kind of weird and inconsistent that we use functions for some types classes for others. I know perfect is the enemy of the good and all that, but it makes our API harder to use.

I think we should change createOpenStreetMapImageryProvider and createTileMapServiceImageryProvider back into classes so they match the other imagery provider types. They could inherit from UrlTemplateImageryProvider so we don’t have to worry about introducing more duplicate code.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
hpinkoscommented, Aug 13, 2019

@thw0rted I opened a PR a while ago but it hasn’t been a priority for us to review and merge it #6203

If createOpenStreetMapImageryProvider doesn’t take a Resource, that’s a quick fix we should be able to do in the meantime. @ProjectBarks would you have a minute to look into that? All other imagery providers should take a Resource

0reactions
thw0rtedcommented, Aug 13, 2019

Did this ever go anywhere? Also, createOpenStreetMapImageryProvider is maybe the only place that takes a URL as a string, not a Resource, and is thus completely impossible to load through a proxy.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Identify (Image Service)—ArcGIS REST APIs
Identify the content of an image service for a given location, mosaic rule, or rendering rule.
Read more >
APIs & Integrations - Geospatial Insurance Consortium
See why aerial imagery is better than satellite images with APIs and partner integrations from the Geospatial Insurance Consortium.
Read more >
Seeking Satellite Imagery Providers? - GIS Stack Exchange
Most of the commercial satellites don't carry consistent global ... The ESRI Javascript API has global satellite data at varying resolution.
Read more >
How to Order and Download Data - Planet Developer Center
last updated: December 13, 2022. If you have a contract with Planet, you can download imagery directly from Explorer or via Planet's APIs....
Read more >
Satellite Imagery - Mapbox
We combine multiple sources of global satellite imagery from commercial providers, NASA, and USGS. Optimized for coverage and consistency, we continually ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found