is possible change marker's custom icon image size? if set inside style size this
style: { image: { icon: { anchor: [0.5, 0.5], anchorxunits: 'fraction', anchoryunits: 'fraction', opacity: 1, size: [12, 12] src: 'images/map-marker.png' } } }
it changes markers size on 12px x 12px inside image stays in original size. can change size of image i'm using marker using directive?
after research found answer. there parameter scale
in openlayers3 ol.style.icon
, can used in angular-openlayers directive.
style: { image: { icon: { anchor: [0.5, 0.5], anchorxunits: 'fraction', anchoryunits: 'fraction', opacity: 1, scale: 0.5, src: 'images/map-marker.png' } } }
i used question how decrease size of icon in openlayers 3, using bing maps
Comments
Post a Comment