Guest User

Untitled

a guest
Jan 16th, 2019
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. var iconFeature = new ol.Feature({
  2. geometry: new ol.geom.MultiPoint([[-90, 0], [-45, 45], [0, 0], [45, -45], [90, 0]]).transform('EPSG:4326','EPSG:3857'),
  3. name: 'Null Islands',
  4. population: 4000,
  5. rainfall: 500
  6. });
  7.  
  8. var iconStyle = new ol.style.Style({
  9. image: new ol.style.Icon(/** @type {module:ol/style/Icon~Options} */ ({
  10. anchor: [0.5, 46],
  11. anchorXUnits: 'fraction',
  12. anchorYUnits: 'pixels',
  13. src: 'https://openlayers.org/en/v5.3.0/examples/data/icon.png',
  14. scale: 0.5
  15. }))
  16. });
Add Comment
Please, Sign In to add comment