SHARE
TWEET

Untitled

a guest Jan 16th, 2019 64 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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.   });
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top