You are not logged in.
Pages: 1
I have this code:
- (void)viewDidLoad {
[super viewDidLoad];
[[self mapView]setShowsUserLocation:YES];
NSString *streetMaps = @"http://tile.openstreetmap.org/{z}/{x}/{y}.png";
MKTileOverlay *overlay = [[MKTileOverlay alloc] initWithURLTemplate:streetMaps];
overlay.canReplaceMapContent = YES;
[[self mapView] addOverlay:overlay level:MKOverlayLevelAboveLabels];
}
- (MKOverlayRenderer *)mapView:(MKMapView *)mapView rendererForOverlay:(id)overlay {
if ([overlay isKindOfClass:[MKTileOverlay class]]) {
return [[MKTileOverlayRenderer alloc] initWithTileOverlay:overlay];
}
return nil;
}
Which works well enough with OSM. Is there a similar tile service for OpenSeaMap? What url do I use for that?
Also, does the sea map url include all the data or just the marine features? Do I need two overlays to get all the data I want?
I'm new to this and having trouble getting going. Thanks.
Offline
The URL for OpenSeaMap tiles is: http://tiles.openseamap.org/seamark/{z}/{x}/{y}.png
These are transparent tiles that can be overlaid on the OpenStreetMap tiles.
Malcolm Herring, Developer
Offline
The URL for OpenSeaMap tiles is: http://tiles.openseamap.org/seamark/{z}/{x}/{y}.png
These are transparent tiles that can be overlaid on the OpenStreetMap tiles.
Oh that explains a lot. Thanks so much! I have it working nicely now.
New question...how do I run my own local map server? IOW - how do I get the data and run my own tile server?
Offline
... IOW - how do I get the data and run my own tile server?
This indeed brings an old question back in focus! There is still is no public exchange of bundled seamark tile-sets.
Suggestions for further reading:
- http://wiki.openstreetmap.org/wiki/Tile … ownloading
- http://kap.grade.de/inland-chart-ol2.html
Have a nice day, Dirk
Offline
Pages: 1