Questions tagged [mktileoverlay]

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

58 questions
1
vote
0 answers

Increase size of tiles in MKMapView

I'm currently implementing an MKMapView with a custom tile overlay. Unfortunately the tiles I have are displayed rather small on retina displays making the text on them rather hard to read. Is there a way to scale them up without messing with their…
Kilian
  • 2,122
  • 2
  • 24
  • 42
1
vote
1 answer

MKTileOverlay - adding in bundle tiles

Adding an overlay with a tiled map is supposed to be easy. I'm having a great problem. They don't show. I have map tiles of the center of Bayeux in 15 16 and 17 zoom in a folder baymap. I slid the folder into the project. here's the code import…
cpmac
  • 69
  • 8
1
vote
1 answer

MKMapView "Legal" Label necessary for custom maps?

I´m using MKMapView for displaying MKTileOverlays. The overlays are drawn by myself and i don't show any map data from Apple or Google. Do I need the "Legal" label on top of the map? I only use the MKMapView to display custom tiles and put some…
Tomte
  • 1,331
  • 12
  • 19
1
vote
1 answer

iOS:Drawing MKTileOveraly on map causes High CPU usage and Memory.i can't find the reason for this.?

i'm trying to add MKTileOverlay on map. when i start loading tile by fetching it from server, CPU usage suddenly increases. again on doing some action like zoom in zoom out or scrolling map cpu usage increases upto 200% whats the reason.?
K_Mohit
  • 528
  • 3
  • 17
1
vote
0 answers

Offline mapping tile creation

In one of my iOS application I want to show an offline indoor map with navigation. I searched it in google and then I found solutions like routeme, mapbox etc .But the thing is I have to do this without any external libraries for that I did a sample…
Anshad Rasheed
  • 2,526
  • 1
  • 14
  • 32
1
vote
1 answer

NSCache in a MKTilelOverlay

I am trying to add a NSCache to my subclasse MKTileOverlay class: @interface WMSTileOverlay () @property NSCache *cache; @end @implementation WMSTileOverlay -(instancetype)initWithURLTemplate:(NSString *)URLTemplate { self = [super…
Padin215
  • 7,444
  • 13
  • 65
  • 103
1
vote
2 answers

MapKit overlays to add floor plans to map

I am trying to add an overlay to iOS MapKit in order to show floor plans. However, I am unsure about the best way of doing this. If I add the floor plans by using an MKOverlay, will the floor plans be loaded lazily or do I need to find out which…
Jorn
  • 1,054
  • 9
  • 25
1
vote
2 answers

iOS 7 is there a way to know when the MKTileOverlay is finished loading tiles?

I would like to implement a zoom effect on the map (which I already have figured out), but after the the MKTileOverlay is finished loading the tiles. Is there anyway to know when those tiles have finished loading? I have tried all the other mapView…
mcphersonjr
  • 733
  • 12
  • 35
1
vote
1 answer

MKTileOverlay zoom level greater than 21

Since iOS 7, we are able to set custom overlays for maps in a very simple way. I'm using my own tile overlays, with zoom greater than 21. MKTileOverlay Class, has a property "maximumZ", but according to the documentation: The default value of this…
0
votes
1 answer

How to efficiently show tiles for each zoom level of MapView?

My current code for adding overlays to my MapView is extremely slow when zooming. Tiles will take about 2 or 3 seconds to initially render. I was wondering if there was a way to call the API I'm using to cache all tiles for every zoom level when the…
0
votes
1 answer

Getting an error "Expected a MKTileOverlay but got (null)" when trying to add MKTileOverlay object to MKMapView

MKMapView class is added and assigned delegate: let mapView: MKMapView = { let map = MKMapView() map.translatesAutoresizingMaskIntoConstraints = false return map }() override func viewDidLoad() { self.view.addSubview(mapView) …
jamryu
  • 668
  • 10
  • 24
0
votes
1 answer

Prevent replacing of WMS Overlay while adding Polygon or Polyline to MKMapView

I have implemented Web Map Service in the MKMapView by subclassing the MKTileOverlay & rendering it using MKTileOverlayRenderer. It works fine and displays the custom map properly. When I call method like mapView.addOverlay(polyLine) to add Polyline…
Anirudha Mahale
  • 2,526
  • 3
  • 37
  • 57
0
votes
0 answers

MKMapView MKTileOverlay erases MKPolyline layer

I'm using this SDK for map https://github.com/2gis/iOS-SDKs-for-tiles But my added routes is not visible. rendererFor calls, but line is not visible.If i remove MKTileOverlay everything works fine. How can I fix it ? func mapView(_ mapView:…
Marriage
  • 501
  • 3
  • 15
0
votes
1 answer

openweathermap MKTileOverlay does not show in mapview

Ive tried to read as many articles on this topic as possible. AFAIK Im doing this correctly however my map is never showing the results of my calls. Im trying to look at precipitation_new layer and while testing I set my Simulators location to an…
Tim
  • 647
  • 1
  • 10
  • 21
0
votes
1 answer

MKTileOverlay with MTiles database

Is there a way to use the MKTileOverlay with a MBTiles database? Storing many small files (tiles) directly on the native file system is very inefficient when the covered area is getting bigger. Having them all together in one place would make a lot…
four-eyes
  • 10,740
  • 29
  • 111
  • 220