Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var iconFeature = new ol.Feature({
- geometry: new ol.geom.MultiPoint([[-90, 0], [-45, 45], [0, 0], [45, -45], [90, 0]]).transform('EPSG:4326','EPSG:3857'),
- name: 'Null Islands',
- population: 4000,
- rainfall: 500
- });
- var iconStyle = new ol.style.Style({
- image: new ol.style.Icon(/** @type {module:ol/style/Icon~Options} */ ({
- anchor: [0.5, 46],
- anchorXUnits: 'fraction',
- anchorYUnits: 'pixels',
- src: 'https://openlayers.org/en/v5.3.0/examples/data/icon.png',
- scale: 0.5
- }))
- });
Add Comment
Please, Sign In to add comment