fyasar
fyasar

Reputation: 3996

Display MKMapView grayscale

Is it possible to change MKMapView display to grayscale ?

Upvotes: 8

Views: 2075

Answers (2)

Ortwin Gentz
Ortwin Gentz

Reputation: 54111

No, the MapKit API does not support any manipulation of the tiles. If you're interested in just a static grayscale map, you might be successful in taking a MKMapSnapshot and manipulate the image afterwards. This won't work for an interactive map, though.

You can also put a semi-transparent image view on top of the mapView. This won't allow you to completely decolorize the underlying mapView. However, you might achieve a similar effect. See the Metropolis Compass app for example.

Upvotes: 8

Zac Bowling
Zac Bowling

Reputation: 6578

You could hit the map title API at google and recolor the titles and load them as a overlay. It would be a little hacky.

I knew some guys that did this in Flash. Google is ok with it with permission:

https://spreadsheets.google.com/viewform?formkey=cm0zMDkzOHZWMjJneEl2RVdkNFZRb0E6MA

Check out Cloudmade's alternative mapping toolkit : http://cloudmade.com/products/iphone-sdk

Edit:

You could maybe overload renderInContext and then repaint the screen somehow. It sounds a bit dangerous.

Upvotes: 0

Related Questions