Improvement of StaticImage example.
See original GitHub issueThe example for static images uses extent
which it gains from previous knowledge, that is, it is hard coded, the extent should be determined from the image. I imagine most will be dynamically loading images and not know the extent in advance. https://openlayers.org/en/latest/examples/static-image.html (in looking for a solution, I found another example with the same problem: https://openlayers.org/en/master/examples/zoomify.html)
Describe the solution you’d like
Rewrite the example code to determine the extent and then use that extent
to define the projection
and layer
.
Thank you for these tutorials. Hopefully I’ll figure this out and post the change.
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
An Introduction to Gatsby Plugin Image | Rob Marshall
Named Import; Static Image Component; Change in Gatsby Image ... of new and improved components, housed under the name Gatsby Plugin Image.
Read more >Gatsby Static Image (gatsby-plugin-image) // Speed Up Your ...
Supercharge your Gatsby projects with this no-graphQL plugin to supercharge your static images. I'll walk you through how to install and use ...
Read more >Using the Gatsby Image plugin
Decide which component to use ... The Gatsby Image plugin includes two image components: one for static and one for dynamic images. The...
Read more >An Introduction to Gatsby Plugin Image - DEV Community
Named Import; Static Image Component; Change in Gatsby Image ... of new and improved components, housed under the name Gatsby Plugin Image.
Read more >Gatsby 3 Image - A Deep-dive into the new image API features
One of those features is improvements to its Image API. ... Gatsby 3 provides a component called <StaticImage /> which can easily integrate ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
The image is loaded asynchronously, and only when required for the map
To get the size before using it in the map you would need to preload the url into a JavaScript Image object and wait for the load event.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.