Eyal
Eyal

Reputation: 10818

Covering a MKMapView with an image

I want to create kind of a map view, just without the map..
Sound strange? I'll explain - I have a bunch of coordinates representing users location that I want to show on screen with there relative location from one another and from the user location (in center of the screen). But I don't want to show the map itself because I don't won't to expose the real address for privacy issues.

The map should look something like this:
map

I though of using the regular map kit so I have all of its functionality but I'm not sure how to do that. and I'm not sure if this is a violation of the google service license...

Any ideas?

Upvotes: 3

Views: 445

Answers (2)

TeaCupApp
TeaCupApp

Reputation: 11452

Well, First of all it will be the violation of Google, as MKMapView by default will query map tiles from Google server behind your hidden Overlay. So don't do that,

What I would suggest is to look into third party customize map solution for iOS. Something like MapBox.

See : MapBox

iOS SDK of MapBox : SDK

In which you can customize the color and look and feel of your Maps and location. There are paid option and free options too. Regarding the privacy issue I suggest you shoot an Email to MapBox people and ask if you can just hide the street names from the App.

Upvotes: 1

Pochi
Pochi

Reputation: 13459

You might want to consider to just ignore the mapkit and go with just location and images as pins. You can easily calculate where a person is standing in relation to another by just the longitude and latitude. it is not a violation of the terms as the gps from the iphone has nothing to do with google. Only the actual maps do.

(however if you are using google api related stuff without showing a map it might be a violation, for example you cannot query for altitude to google itself without showing a map. But then again the phone's gps gives you the altitude.)

Upvotes: 2

Related Questions