Comments (2)
You could use the ol/style/Icon getWidth()
, getHeight()
or getScale()
methods. Rendered size is independent of the view unless you use a style function which scales an icon based on resolution (unsized SVGs may give inconsistent results if the view is resized but you should avoid using these as they do not work at all on some browsers).
from openlayers.
Ah, okay. I'll modify the svgs and see if that works. Thanks
from openlayers.
Related Issues (20)
- Sometimes OpenLayers on iOS will zoom in or out with a single finger gesture. HOT 1
- Missing tiles in WebGLTileLayer with a GeoTiff source HOT 4
- webgltilelayer style filter
- Operator support for Id is missing on gpu
- Support OSM XML metadata (timestamp, etc) HOT 3
- olopenlayer in local HOT 1
- viewport Bug HOT 1
- Multistyle multigeometry draw bug HOT 3
- Regression on Drawing Rectangle with RenderEvent.context (Rotating the Map) HOT 7
- When trying to use dimensionless SVG as icon: "Passed-in canvas is empty" HOT 1
- Reprojection issues with `wrapX: false`
- Type VectorSource<Feature<Geometry>> is not assignable to type VectorSource<FeatureLike> HOT 12
- TypeScript: `VectorSource<Feature<Point>>` can't be used as a source for `VectorLayer` HOT 1
- Default generic type of VectorSource not compatible with VectorLayer HOT 3
- 用于银河麒麟系统时,web多次缩放地图后,前端不再发出瓦片请求 HOT 6
- VectorLayerOptions does not use the same generic type as VectorLayer HOT 11
- ACCUSATION MESSAGES DISPLAYED ON THE MAP ON LAT LON 51.94599:7.7041138 HOT 9
- Empty map when returning to tab in Google Chrome? HOT 3
- Modify interaction options and cluster source options optional HOT 3
- WrapX doesn't work When I use custom coordinate system BD09; HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from openlayers.