Open Craccteam opened 6 years ago
// provide image to your marker
` marker.iconView = UIImageView(image: #imageLiteral(resourceName: "tracker"))
// I'd choose to insert above, but below will work too, depends on your UI
marker.iconView?.layer.insertSublayer(pulsator, above: marker.iconView?.layer)
// this is actually what matches marker position
pulsator.position = (marker.iconView?.layer.position)!`
// provide image to your marker ` marker.iconView = UIImageView(image: #imageLiteral(resourceName: "tracker")) // I'd choose to insert above, but below will work too, depends on your UI marker.iconView?.layer.insertSublayer(pulsator, above: marker.iconView?.layer) // this is actually what matches marker position pulsator.position = (marker.iconView?.layer.position)!`
hi after 2years i have this error on my project. i have did what you said on your code, but its not working. I have added pulsator to marker but its pulse animation can not go out of the marker icon(i have set clipToBounds of uiimageView to false).
Here is Images: https://prnt.sc/sfeunt https://prnt.sc/sfevbg
I have try many way to add to marker googlemap but unsucessfully.