mike-000

Results 210 comments of mike-000

There is already something similar to that internal to the KML format where an icon scale of 1 is based on a width of 32 pixels regardless of the native...

You can do it as in the CodeSandbox above. For something more convenient for frequent use you could create a custom class, e.g. https://codesandbox.io/s/icon-forked-uof9by?file=/main.js

If you have a non-georeferenced tiff image which you wish to use as an `ImageStatic` source you can decode it in a custom `imageLoadFunction` using a decoder such as tiff.js...

> A GeoTIFF without cloud optimizations does work as well. Just keep in mind that this only makes sense for relatively small TIF images, otherwise you're going to overwhelm the...

> This can add overhead to loading and rendering They also produce a poor final image as in https://github.com/openlayers/openlayers/issues/13705#issuecomment-1137115561 (based on https://codesandbox.io/s/cog-forked-3ke4jo?file=/main.js). I got a better result there by using...

I think a `getTileData` method for `DataTile` and `GeoTIFF` sources could be useful general purpose utility, as suggested in https://github.com/openlayers/openlayers/issues/13197#issuecomment-1010074927 along with a corresponding `getTileImage` method for `TileImage` sources as...

It also happens with regular shape and circle styles https://codepen.io/mike-000/pen/vYRpXNp These have no anchor option so it may have been intentional. Both those and icon are subclasses of ol/style/Image.

For regular shapes it make sense, e.g. circle style with radius 50 and displacement [0, 50] is always anchored bottom center regardless of scale ![image](https://user-images.githubusercontent.com/49240900/182107951-1d57fe31-c8d4-4025-bbd6-84e11c8bca80.png) Maybe that should be called...

Anchor units can be specified as pixels, but are still scaled with the image https://codesandbox.io/s/icon-forked-ku5ly3?file=/main.js

> This is very confusing for the user. No, that would be expected as anchor is typically set within or on the edge of the image. Also note that like...