An iOS Map Kit data type: A rectangular area as measured on a two-dimensional map projection.
Questions tagged [mkmaprect]
31 questions
1
vote
0 answers
Fit annotations in Watchkit Map with padding
I can't for the life of me figure this one out. I have been able to get annotations on the map and create a new Rect to hold them and set the map to that rect but my issue is obviously these annotations are right at the very edges of my map and I…

Jordan
- 2,393
- 4
- 30
- 60
1
vote
1 answer
how to rotate MKMapRect overlayBoundingMapRect
I'm developing an indoor map app. it's for ipad devices.
I'm using objective-c.
I have an overlay inside a boundingMapRect, it’s an image (floorplan) from a PDF File.
It’s shown with the correct size.
but one issue for me is the origin for the…

miss h
- 133
- 1
- 2
- 15
1
vote
1 answer
MKMapView visibleMapRect twice - different results
I have a view that calls visibleMapRect twice on a MKMapView with the same value both times. The first time it loads as expected (the map changes the visibleMapRect, though that's expected). The second time I re-use the visibleMapRect I used the…

livings124
- 1,103
- 1
- 10
- 23
1
vote
1 answer
iOS: zoom in map for some markers don't work in iOS 7
In my app I use this code to zoom in my map where my marker are positioned :
- (void)mapView:(MKMapView *)mapView didAddAnnotationViews:(NSArray *)views {
count++;
if (count == arrayResults.count){
MKMapRect zoomRect =…

cyclingIsBetter
- 17,447
- 50
- 156
- 241
1
vote
1 answer
Get all annotations around another annotation
I'm trying to get all annotations around another annotation on a specified area, but I can't figure how to do it. Now I'm trying with:
MKMapRect mapRect = MKMapRectMake(annotation.coordinate.longitude, annotation.coordinate.latitude, 10.0,…

ov1d1u
- 958
- 1
- 17
- 38
0
votes
1 answer
How to determine area of MKMapRect with greatest concentration of MKAnnotation objects?
Given an MKMapView that contains a variable amount of annotations ([mapView annotations]) at various points on the map and the MKMapRect value MKMapRectWorld, how can I determine an area on the map that has the greatest concentration on MKAnnotation…

james_womack
- 10,028
- 6
- 55
- 74
0
votes
0 answers
Determine MapKit tiles for visibleMapRect
I saw simple code for calculating a grid of tile bounds needed for a given MKMapRect but I can't find it now. IIRC it was a function built-in to MapKit.
Given a MKMapRect like mapview.visibleMapRect and zoom level, how can I calculate an array of…

Jeshua Lacock
- 5,730
- 1
- 28
- 58
0
votes
1 answer
Is sort part of shuffle in mapreduce
the process by which the system sort the map output on map side is known as the sort. is this part of shuffle? In other words, when does shuffle start? After the map output has been wrote to disk, or after the map output has been wrote to the buffer…

逯亚东
- 3
- 1
0
votes
1 answer
Loading new pins on MKMapView as user scrolls and zooms using AFNeworking
Initially I load 10 pins using AFNetworking and plot them on the map and set the map zoom level to fit these 10 pins, however in my database I have 1000 pins and I want to load them as the user scrolls or zooms, how would I go about doing this?

Sami
- 1,374
- 1
- 16
- 43
0
votes
0 answers
Center mkmapview on my position animation
i am trying center map on my position but my position now is in 3/4 of map. It is working but now I wanna zoom in more on my position. Can you help me?
CLLocationCoordinate2D objCoor2D = {.latitude = latitude_UserLocation, .longitude =…

Patrik Dendis
- 313
- 6
- 20
0
votes
0 answers
iOS: mapview and center one marker
I have this code where in iOS6 I center a marker in the center in a mapview, it don't happen in iOS 7 why?
- (void)mapView:(MKMapView *)mapView didAddAnnotationViews:(NSArray *)views {
MKMapRect zoomRect = MKMapRectNull;
for (id…

cyclingIsBetter
- 17,447
- 50
- 156
- 241
0
votes
1 answer
MKMapRegion issues iOS 7.1
I have to fit the pins to the visible map so I get the MKMapRect with the well-known lines of code:
MKMapRect mapRect = MKMapRectNull;
for(id annotation in [self.mapView annotations]){
if (
Cers
- 169
- 1
- 11
0
votes
2 answers
how to set a mapRect for mkOverlay?
i want set a rect on top of the polyline route on my map.
this is what exactly i'm trying to do:
- (MKOverlayRenderer *)mapView:(MKMapView *)mapView rendererForOverlay:(id)overlay
{
if ([overlay isKindOfClass:[MKPolyline class]]) {
…

Max_Power89
- 1,710
- 1
- 21
- 38
0
votes
2 answers
Creating MKMapRect from coordinates and using mapView.visibleMapRect
I'm trying to see if some extents (max x, max y, min x, min y coordinates) I have are in the current visible map view.
I take my extents and create a MKMapRect:
MKMapPoint upperLeft =…

Padin215
- 7,444
- 13
- 65
- 103
0
votes
2 answers
MKMapView image overlay drawing inverted
I am currently creating an app which requires numerous overlays of different sizes to be drawn on a map. The app currently grabs 2 map points which represent the corners of a bounding box in which the overlay should sit. I am then converting these…

Elliott D'Alvarez
- 1,217
- 16
- 30