Trip Phillips Trip Phillips - 1 year ago 136
Swift Question

Custom Map Annotation is blurry

Hi I have created a custom annotation in Sketch 3 and when I scale it down to fit into the map view it becomes blurry. How do I fix this?

Answer Source

You could try to set the filtering Mode of your Node texture to .Nearest

 let nodeTexture = SKTexture(imageNamed: "node")
 nodeTexture.filteringMode = .Nearest
 node = SKSpriteNode(texture: nodeTexture)
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download