Questions tagged [mktileoverlay]

iOS implementation to draw overlays or replace a map using bitmap tiles.

58 questions
17
votes
2 answers

Offline Cache of Map

I have a big need to do an offline map for my app, as it is made mostly for Thailand, where internet connection is often hard to come by. I am using OpenStreetMap right now for my MKTileOverlay but am having issues implementing it for offline use. …
user717452
  • 33
  • 14
  • 73
  • 149
8
votes
1 answer

iOS - Some tiles not rendered in a custom MKTileOverlay

I have a custom MKTileOverlay in my iOS project using MapKit, it works fine most of the time. However, after zooming in/out a few times and panning the map some of the tiles are not being drawn. At first I thought it was a simple case of tiles not…
pppd
  • 89
  • 5
5
votes
1 answer

MKTileOverlay with Retina-Tiles

I have issues to load 512x512px tiles in MKMapKit. The Server provides 512x512 .jpeg tiles. I could not find any solution or sample implementation for custom retina tiles in MKMapView. What I do: When I load them into MKMapView with overlay =…
user707342
  • 339
  • 1
  • 2
  • 9
5
votes
0 answers

Yet another MKMapView zoom level and Offline maps

I've been working with MKMapView in iOS 7 trying to set and get programatically the zoom level in order to download and reuse map tiles when I were offline. As I can't download the whole map into my phone, I download just several tiles in an…
JZarzuela
  • 502
  • 4
  • 11
4
votes
0 answers

iOS MKMapView loading custom tile optimisation

I have developed iOS Map application with custom TileOverlay, which loads tiles from our own server. I extended TileOverlay class, which gets tile data as following: override func loadTile(at path: MKTileOverlayPath, result: @escaping (Data?,…
4
votes
0 answers

How to fix various MKTileOverlay rendering problems?

I'm currently in the process of converting a custom map from using a CATiledLayer scroll view to using custom map tiles in an MKMapView with an MKTileOverlay. Whilst the CATiledLayer-approach generally works well and looks nicer, you get a lot of…
Robert
  • 5,735
  • 3
  • 40
  • 53
4
votes
2 answers

Add MKTileOverlay on map in swift

During the execute the image is repeated throughout map. I could also specify a UIImage in place of URLTemplate? I have add an overlay image in some particular location. Precisely at the current position. Thank you This is my code: import…
Michele Mola
  • 101
  • 2
  • 7
4
votes
0 answers

How to save and load offline maps efficiently when using MKTileOverlay

I am wanting to display and also cache map tiles for offline use from a chosen service such as Open Street Maps. This seems to be easy since iOS7 and it works using: static NSString * const template =…
Nic Hubbard
  • 41,587
  • 63
  • 251
  • 412
3
votes
1 answer

Why MKTileOverlay repeats same tile over and over for openstreet map in ios, swift4

I'm using OpenStreet map to with our own map server with iOS. for iOS I couldn't find any third party library (free or paid) which can use with our open StreetMap server. then I decided to go with MKMapView using MKTileOverlay like below : added a…
Marlon Brando aka Ben
  • 863
  • 1
  • 14
  • 33
3
votes
1 answer

How to use openstreet map in iOS with custom map Server, Swift any Libraray?

We have our own open street map server which is maintain by our company. for both Android and iOS we are planning to use this Map Server which is like "http://maps.mycompanyname.com/osmtiles/15/23655/15748.png." For Android they have amazing…
Marlon Brando aka Ben
  • 863
  • 1
  • 14
  • 33
3
votes
2 answers

MapKit : add MKPolyline hide MKTileOverlay

I have a MKMapView working with a MKTileOverlay showing tiles from a local database. It's working fine. Then I used MKDirections to get direction between two coordinates and draw the route like that : MKRoute *route =…
Jonathan
  • 606
  • 5
  • 19
3
votes
0 answers

iOS7: MKTileOverlayRenderer with tile size greater than 256

I want to use custom map tiles of 512x512 pixels with the MKTileOverlay/MKTileOverlayRenderer. My custom MKTileOverlayRenderer which draws each frame's border looks as follows: -(void)drawMapRect:(MKMapRect)mapRect zoomScale:(MKZoomScale)zoomScale…
Hyndrix
  • 4,282
  • 7
  • 41
  • 82
2
votes
0 answers

Convert between MKMapView.CameraZoomRange minimum and MKTileOverlay maximumZ

My app uses the NOAA RNC Chart Tile Service as an overlay for my MKMapView. When downloading each chart QuiltedTileSet, I am able to retrieve the tile set's maximum zoom level (e.g. maximumZ = 21) func setupTileRenderer() { template =…
sleech
  • 43
  • 4
2
votes
1 answer

MKTileOverlay Tiles disappear after exceeding maximumZ

The tiles are loaded from disk via loadTileAtPath / URLForTilePath with a subclassed MKTileOverlay. When setting the maximumZ of the overlay, tiles beyond that level are (as expected) no longer loaded. However, the tiles of the level above also…
Jens Habegger
  • 5,266
  • 41
  • 57
2
votes
2 answers

how to call MKTileOverlay "url" function from subclass? getting EXC_BAD_INSTRUCTION

I am getting a runtime error at the point marked below? How to call MKTileOverlay "url" function from subclass? getting EXC_BAD_INSTRUCTION? Basically want to show custom tiles in some places, but when not available drop back to standard Apple map…
Greg
  • 34,042
  • 79
  • 253
  • 454
1
2 3 4