I started researching maps recently and wanted to know how I could implement the tiles from OpenLayer (which is what I believe openstreetmap is displaying) over my MKMapView. The default sdk doesnt show enough detail for what I want to do. I could ping the servers for the tiles but I keep seeing warning about doing so. So my two problems are 1) how do i get the tiles from the openlayer and overlay them in my mapview and 2) is there a way of getting these tiles ahead of time and just storing them in my app? I am only trying to map a small area (roughly 9 square miles worth). Any suggestions are appreciated
How do I utilize OpenLayer (OpenStreetMap) tiles in my mapview iOS 7
1.5k views Asked by CoderNinja At
1
There are 1 answers
Related Questions in IOS
- URLSession requesting JSON array from server not working
- Incorrect display of LinearGradientBrush in IOS
- Module not found when building flutter app for IOS
- How to share metadata of an audio url file to a WhatsApp conversation with friends
- Occasional crash at NSURLSessionDataTask dataTaskWithRequest:completionHandler:
- Expo Deep linking on iOS is not working (because of Google sign-in?)
- On iOS, the keyboard does not offer a 6-character SMS code
- Hi, there is an error happened when I build my flutter app, after I'm installing firebase packages occurs that error
- The copy/paste functionalities don't work only on iOS in the Flutter app
- Hide LiveActivityIntent Button from Shortcuts App
- While Running Github Actions Pipeline: No Signing Certificate "iOS Development" found: No "iOS Development" signing certificate matching team ID
- Actionable notification api call not working in background
- Accessibility : Full keyboard access with scroll view in swiftui
- There is a problem with the request entity - You are not allowed to create 'iOS' profile with App ID 'XXXX'
- I am getting "binding has not yet been initialized" error when trying to connect firebase with flutter
Related Questions in MKMAPVIEW
- Dropping Pin into Map view when table view cell is selected
- Adding moving circle overly on MKMapView on iOS 16 and above
- MKMapKit. MKMapViewDelegate doesn't respond. SwiftUI
- Dynamic Plane Annotation Display Based on MKMapView Zoom Level in Swift
- FetchReqeust of many items with predicate causing stuttering swiftui animations
- how can we decide map region for our if we have multiple annotations throughout the map
- Display day / night overlay on MKMapView
- Using MKMapView, how can I center and zoom in on a coordinate as much as possible?
- Pin annotation is not showing in MKMapView when both longitude and latitude are 0
- Swift MapView display points of interest without the little icon (circle with image)
- Access underlying base imagery with MkTileOverlay or MKTileOverlayRenderer?
- Placing a marker in the center of an MKPolyLine
- Performance issues when resizing MapView
- "Property 'setRegion' not found on object of type MKMapView*" or problem connecting storyboard to the code?
- Determine MapKit tiles for visibleMapRect
Related Questions in OPENLAYERS
- Where's the ol.js (full build of library) from open layers 6v documentation on 9v?
- projection and EPSG mismatch when buffering a geometry
- Map openlayer does not want to display - Angular 16
- using a blob with open layer. error : "Invalid byte order value"
- Pre-selecting an OpenLayers feature prevents easy de-selecting
- How to use tilemaker-server with openlayers
- Placing feature labels at specific coordinates in OpenLayers
- OpenLayers: Zoom level cropping VectorTile layer - how to fix?
- Getting a filtered list from float32array results
- Adding shaders to the style object in WebGLVectorLayerRenderer?
- Can't customize OpenLayer map controls
- Is there a way to know the style is declutter?
- Color styling for >100 COG GeoTIFF with min/max values in OpenLayers
- Looping over group/subgroup/layers in OpenLayers v8.2.0
- event listener of removefeature does not get executed when a feature is removed from the vectorsource
Related Questions in MKTILEOVERLAY
- MapKit top MKTileOverlay blendMode overrides lower MKTileOverlay blendMode
- How to efficiently show tiles for each zoom level of MapView?
- Getting an error "Expected a MKTileOverlay but got (null)" when trying to add MKTileOverlay object to MKMapView
- Convert between MKMapView.CameraZoomRange minimum and MKTileOverlay maximumZ
- MKTileOverlay Tiles disappear after exceeding maximumZ
- Prevent replacing of WMS Overlay while adding Polygon or Polyline to MKMapView
- MKMapView - Show Customizable Gridlines
- how to call MKTileOverlay "url" function from subclass? getting EXC_BAD_INSTRUCTION
- MKMapView MKTileOverlay erases MKPolyline layer
- MKTileOverlay, tiles at 180.0 / -180.0 not drawn consistenly
- openweathermap MKTileOverlay does not show in mapview
- Performance issue when drawing MKPolyLine over MKTileOverlay
- Why MKTileOverlay repeats same tile over and over for openstreet map in ios, swift4
- How to use openstreet map in iOS with custom map Server, Swift any Libraray?
- MKTileOverlay with MTiles database
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
What you are looking for is a MKTileOverlay which overlays the tiles from OpenSteetMap.
There is some sample code for this by Mattt Thompson on NSHipster:
For each required tile, this will download the data from the URL template.
See http://nshipster.com/mktileoverlay-mkmapsnapshotter-mkdirections/ (where this is taken from) for more details.
If you want to manage your own tile cache (for example, some tiles are shipped along with the application), you can subclass
and provide the data directly. However, I'd imagine that even 9 square miles worth of data would be very large if all zoom levels are required. You could potentially have a hybrid though, and provide some data with your app, and the higher zoom levels are downloaded directly.