I'm looking for a way to add POIs to SKMapView heat map which are generated from my app. In the example provided with SDK there's only a way to show categories from internal data source.
I looked at category from SKMaps SDK and there're only two methods:
#interface SKMapView (HeatMaps)
- (void)showHeatMapWithPOIType:(NSArray *)poiTypes;
- (void)clearHeatMap;
#end
Also I have another question: how to set minimal and maximal zoom level for heat maps?
As an alternative I'm looking for a way to add custom overlay like in Apple Maps:
[self.mapView addOverlay:self.heatMap];
Currently heat maps work only with OSM POI types - generating heat maps from a custom POI data set is on the roadmap in the second part of 2015
Related
I want to add my project Heat map using GoogleMap on iOS. I found the heat map not supports google map for iOS. And i also found one demo but is in Apple(native) map.
So any one know how to add heat map using google map. Please help me.
I was wondering if it is possible to create custom directions with mapkit. For example I want to create a map for my university which has roads but also has walking paths that apple doesn't have in there maps is it possible for me to create custom directions using mapkit? I know that I can do a tileoverlay so that it shows the walking path but is it possible for me to use the paths I create for directions?
No, this functionality isn't available in MapKit. You might look into a platform like Mapbox for being able to combine custom data in the map with custom data in the routing so that the two are 1) separate from the data that MapKit makes available) and 2) able to use custom data.
I'm trying to create a map of the office I'm working at. I have a high resolution image, and would like to autorotate it in the direction the user is heading, allowing the user to navigate around the map. I thought this could be accomplished using CoreMotion/CoreLocation and a UIScrollView, but this seems like there's some work involved.
So I'm wondering if there are easier solutions for combining a custom map and direction/position on that map - can MapKit handle this for me? Are there other frameworks that can help me show a local 2D map with compass orientation on it?
You can convert your high-res image into map tiles easily with TileMill.
You should use some custom tiles with MKTileOverlay which only display at a very high zoom level (like z 18 or whatever). I suggest you take a look over at NSHipster and read what they have about it:
http://nshipster.com/mktileoverlay-mkmapsnapshotter-mkdirections/
*Disclaimer: I haven't tried this myself, came across the NSHipster article while searching for solutions to my own problems.
I'd like to provide custom navigation maps in my iOS 6 application. I've tried adding overlay views that shows these custom maps in MKMapView and it didn't work well because it needs a higher zoom level than what Apple's component can provide (the desired zoom level is about 10 screen points per meter in the map).
The question is, is subclassing MKMapView a good way to approach to this? The primary reason is I'd like to take advantage of MKMapView's coordinate conversion functions:
convertCoordinate:toPointToView:
convertPoint:toCoordinateFromView:
convertRegion:toRectToView:
convertRect:toRegionFromView:
Those functions makes it easy to convert screen points to world coordinates (latitude/longitude) and vice-versa.
Thanks in advance!
I don't think you are going to have much luck with subclassing MKMapView. There is a lot going on behind the scenes related to tile loading that you cannot access.
I would guess you would be better served using something along the lines of the MapBox iOS SDK or another similar map engine.
It allows you to specify your own tile sources and has plenty of examples to show you how it is done. It also had functions, like map kit, to handle converting values to and from lat/lon.
I want to create an app for ipad with custom map (very small pice of global map, like a google map), which have my design, but with same geo attributes as google map (for example). Can you advise me something?
I think it could be useful to take a look at Google Maps - Overlays