0

How is't possible to change the geomarker in another symbol? For examle 'a bike'

http://openlayers.org/en/latest/examples/feature-move-animation.html

0

In the code of the OL3 example there is a collection of styles, change its style there if you don't want to modify much of the code :

'geoMarker': new ol.style.Style({
    image: new ol.style.Icon(/** @type {olx.style.IconOptions} */ ({
        anchor: [0.5, 0],
        anchorOrigin: 'bottom-left',
        anchorXUnits: 'fraction',
        anchorYUnits: 'pixels',
        src: 'yourBikeImage.png or whatever supported extension'
    }))
})

you can also edit the style of that feature with:

geoMarker.setStyle(yourStyle);

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.