tags:

views:

524

answers:

2

Hi, 'route-me' is an iPhone map engine and I want to add my own map source to it. I've got all the map images on my server but I dont know how to add the map source? Any one could help?

A: 

There seems to be two ways to do this:

First, from the documentation:

If you have your own maps, you can use Mapnik as a framework and OpenStreetMap as your host. You can then point to your map with the RMOpenStreetMapsSource class to specify the URL.

Alernativly,

You can use an app for route-this called SimpleMap along with an extension called Map2sqlite. This allows you to use a class caled RMDBTileSource and point to a sqlite DB file of your maps as the source. I found this tidbit on a google groups article covering this topic.

Anthony
A: 

So, code below should get the job done?

id <RMTileSource> tileSource;
NSURL *mapURL = [NSURL URLWithString:@"myOSM_URL"];
tileSource = [[[RMOpenStreetMapSource alloc] initWithURL:mapURL] autorelease];

Doing this results with error:

-[RMOpenStreetMapSource initWithURL:]: unrecognized selector sent to instance 0x5b0c310
Sebos