shu223 / Pulsator

Pulse animation for iOS
MIT License
1.42k stars 160 forks source link

Google Map #34

Open Craccteam opened 6 years ago

Craccteam commented 6 years ago

I have try many way to add to marker googlemap but unsucessfully.

umwelt commented 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)!`
asger777 commented 4 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)!`

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