Questions tagged [mktileoverlay]

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

58 questions
2
votes
1 answer

Performance issue when drawing MKPolyLine over MKTileOverlay

I have a MKMapView where the user can choose if he wants to use Apple Maps or an alternative map source. On that map I draw a MkPolyline showing the current heading. That line updates once a second by removing and adding the line. My app does a lot…
Zifigo
  • 196
  • 8
2
votes
1 answer

iOS / MapKit cache management issue with MKTileOverlay and PINCache library

I am using MapKit in order to create satellite and radar animation by adding MKTileOverlay over the mapView. With an UISlider and a PlayButton I was able to create an animation, like a GIF by playing with the alpha of the MKOverlayRenderer (setting…
user7219266
2
votes
2 answers

iOS - Workaround MKOverlayRenderer and Alpha property

How can I access and modify the alpha property of an MKOverlayRenderer after it has already been passed to the Map? Indeed I can modify the alpha attribute in the rendererForOverlay method : - (MKOverlayRenderer *)mapView:(MKMapView *)mapView…
Funnybear
  • 71
  • 11
2
votes
0 answers

Why is my custom MKTileOverlayRenderer drawing the same tile in multiple places?

So I'm writing a MapKit-based app which draws an overlay over the map. However, a lot of the overlay drawing is dynamic, such that tile which gets drawn is frequently changing, so I've implemented a custom MKTileOverlay and a custom…
2
votes
2 answers

Offline Map in iOS

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
2
votes
1 answer

MKTileOverlay: How to reload a specific tile or region

I'm working on a map-based app. I used a MKTileOverlay to show some dynamic contents. Occasionally certain tiles need reloading when new information arrives. I've tried to call overlayRenderer.setNeedsDisplayInMapRect(mapRect) in main thread but…
Jinghan Wang
  • 1,139
  • 12
  • 21
2
votes
1 answer

MKTileoverlay issue in swift

I'm quite new to iOS development and am facing an issue using MapKit. I am trying to create a simple application to overlay a raster image to a map created with mapkit. Here is the code for my tabViewcontroller: import UIKit import MapKit class…
julienG
  • 21
  • 3
2
votes
1 answer

Subclassed MKTileOverlay not displaying on map

I am trying to display WMS tiles from our WMS server. I achieved this with the old MKOverlay but I am now trying to update it to use MKTileOverlay but I can not get the tiles to display. Here is my class: @interface WMSTileOverlay () @property…
Padin215
  • 7,444
  • 13
  • 65
  • 103
2
votes
1 answer

MKTileOverlay in iOS 7 with mbtiles database

Is there a way by which I can directly use mbtiles database with MKTileOverlay without using a third party framework like MapBox or any other? Right now, I have the tiles stored in a folder structure and the code I am using is below: NSString…
2
votes
1 answer

Convert MKTileOverlayPath to MKMapRect?

I'm using the method: - (void)loadTileAtPath:(MKTileOverlayPath)path result:(void (^)(NSData *data, NSError *error))result The MKTileOverlayPath gives me an x, y and z. I'm trying to take this path and take a snapshot of what the…
Andrew
  • 7,693
  • 11
  • 43
  • 81
2
votes
1 answer

Tiles from openstreetmap in retina display

I have a problem when display tiles from openstreetmap through MKTileOverlay ; in retina display, text and labels are half size ( wrong scale ) and the map is unreadable. I have tried to change tilesize , but with a different value the map is not…
atrebbi
  • 553
  • 3
  • 20
2
votes
2 answers

MKTileOverlay subclass for cached tiles

Hello i am using MKTileOverlay to present OpenStreetMap tiles in my iOS7 App. Now i'd like to implement the ability to cache these tiles. I saw a post on NSHipster (http://nshipster.com/mktileoverlay-mkmapsnapshotter-mkdirections/) and did it…
dehlen
  • 7,325
  • 4
  • 43
  • 71
2
votes
0 answers

Can't get MKTileOverlay to support 1024 x 1024 sized tiles...

if I set the tileSize property of MKTileOverlay to tileSize=CGSizeMake(1024, 1024). the mapViewer shows my tiles all over the view with gaps and in the wrong order. I have produced tiles that are in the dimension 1024 x 1024. zoom level 1 has 4 png…
jack
  • 1,861
  • 4
  • 31
  • 52
1
vote
1 answer

MKMapView - Show Customizable Gridlines

I want these lines to be visible on a regular map in such a way where each square represents 1x1m. I looked into MKTileOverlay but didn't find too much about it. Is it possible to show the gridline on the map as well as change the color?
grantespo
  • 2,233
  • 2
  • 24
  • 62
1
vote
1 answer

MKTileOverlay, tiles at 180.0 / -180.0 not drawn consistenly

I used MKTileOverlay class to cover the map by self generated tile images. All works good, except the tiles on the border at Longitude 180 or -180 degree. At this line, tiles are drawn only sometimes... can anybody give me a hint to solve that? you…
Hardy_Germany
  • 1,259
  • 13
  • 19