Re: MKMapView pin dragging question

2017-10-25 Thread Alex Zavatone
Hmmm. I wonder if there is a delegate method that is being missed. I’ll have to look tomorrow if you haven’t solved it. In the meantime… https://stackoverflow.com/questions/30021305/mkannotation-pin-wont-drag-even-though-set-as-draggable annotation.title? It appears to be set in your supplie

Re: MKMapView pin dragging question

2017-10-25 Thread Marco S Hyman
> On Oct 25, 2017, at 6:11 PM, Alex Zavatone wrote: > > This might be simple. Please correct me if I am wrong, I think the last time > I dealt with this was in 2012. > > Isn’t there a method or property such as canDragPin that you have to override > or implement in your subclass? I’m sett

Re: MKMapView pin dragging question

2017-10-25 Thread Alex Zavatone
pin = mapPin { >pin.coordinate = location; >pin.title = "location" >mapView.addAnnotation(pin) >} > > This MKMapViewDelegate function is called to create the annotationView > >func mapView(_ mapView: M

MKMapView pin dragging question

2017-10-25 Thread Marco S Hyman
pin.coordinate = location; pin.title = "location" mapView.addAnnotation(pin) } This MKMapViewDelegate function is called to create the annotationView func mapView(_ mapView: MKMapView, viewFor annotation: MKA

Re: MKMapView userLocation heading & a dropped pin

2017-06-23 Thread Eric E. Dolecki
Thank you :) On Fri, Jun 23, 2017 at 2:17 PM Marco S Hyman wrote: > > I am trying to determine whether or not the pin is in front, left, right, > > or behind the user. I am going to perform calculations within > > > > func locationManager(_ manager: CLLocationManager, didUpdateLocations > > loca

Re: MKMapView userLocation heading & a dropped pin

2017-06-23 Thread Marco S Hyman
> I am trying to determine whether or not the pin is in front, left, right, > or behind the user. I am going to perform calculations within > > func locationManager(_ manager: CLLocationManager, didUpdateLocations > locations: [CLLocation]) { > > I already determine distance. How might I go about

MKMapView userLocation heading & a dropped pin

2017-06-23 Thread Eric E. Dolecki
Happy Friday everyone. I have a map and on it a userLocation which is tracked. I also have a dropped pin on the map. I am trying to determine whether or not the pin is in front, left, right, or behind the user. I am going to perform calculations within func locationManager(_ manager: CLLocationM

MKMapView hybrid mode app hang problem

2017-01-19 Thread Devarshi Kulshreshtha
I have MKMapView on layout, if I enable Standard Mode and quickly perform basic operations on it such as - zoom - in / out, pan it works fine but if I perform same operations on MKMapView with hybridFlyover mode enabled CPU utilisation reaches 100% and my app hangs. Any ideas on how can resolve

MKMapView maximum zoom?

2015-04-18 Thread Britt Durbrow
I’m trying to write an app (on both OS X and iOS) that uses MapKit to display and edit data on a map; including in-building maps (i.e, floor plans). However, the maximum zoom level of MKMapView is insufficient for this; and my attempts to zoom it in further seem to be getting clipped. The

Re: When I rotate the MKMapView with transform, setCenter not working.

2014-10-31 Thread Mike Abdullah
> On 31 Oct 2014, at 11:43, sonofsky2...@gmail.com wrote: > > Hi, > I have solved this problem. > Do not change the frame of map view when it’s transform does not equal to > CGAffineTransformIdentity. This is a general rule about UIView. Once the transform is anything other than identity, .fr

Re: When I rotate the MKMapView with transform, setCenter not working.

2014-10-31 Thread sonofsky2...@gmail.com
Hi, I have solved this problem. Do not change the frame of map view when it’s transform does not equal to CGAffineTransformIdentity. Best Regards, Sunny Lee > 在 2014年10月31日,上午12:54,sonofsky2...@gmail.com 写道: > > Hi all, > > I rotate the MKMapView with setting the rotation

When I rotate the MKMapView with transform, setCenter not working.

2014-10-30 Thread sonofsky2...@gmail.com
Hi all, I rotate the MKMapView with setting the rotation transform. When I use setCenter method to change the center coordinate of the map, the location of this coordinate not in the center. Does anyone know what happened, and how to solve this problem? Below is the code snipt. - (void

Re: MKMapView, screen grabs and other discussions

2013-11-29 Thread Graham Cox
Thanks again, works perfectly for my needs. I guess that its existence indicates that you can use it freely, so the legality question is moot. —Graham On 29 Nov 2013, at 3:21 pm, Graham Cox wrote: > Aha! I hadn’t spotted that class. Looks very promising… I’ll check out the > videos also.

Re: MKMapView, screen grabs and other discussions

2013-11-29 Thread Graham Cox
Aha! I hadn’t spotted that class. Looks very promising… I’ll check out the videos also. cheers, Graham On 29 Nov 2013, at 2:21 pm, Roland King wrote: > Does MKMapSnapshotter do what you want? There's a bunch of stuff about maps > in OSX in the WWDC 2013 videos, I think I remember seeing that

Re: MKMapView, screen grabs and other discussions

2013-11-29 Thread Roland King
on, > display it as a layer in an app, and allow the user to trace over it. > > MapKit makes this hard, probably deliberately. > > First, MKMapView is the only object available for displaying the map - there > is no lower-level object that will render map data into a view of yo

MKMapView, screen grabs and other discussions

2013-11-29 Thread Graham Cox
Hi all, What I want to do is to use MapKit to get imagery of a particular region, display it as a layer in an app, and allow the user to trace over it. MapKit makes this hard, probably deliberately. First, MKMapView is the only object available for displaying the map - there is no lower-level

Re: MKMapView compositing

2012-11-05 Thread Vincent Habchi
Eve, > When you have alpha transparency you can either blend the aerial tiles into > the map view or blend the entire map view into the aerial tiles. Either way, > I think, you can get something that looks good. Semitransparent overlays > consisted of aerial tiles might actually work, and it

Re: MKMapView compositing

2012-11-05 Thread Evadne Wu
When you have alpha transparency you can either blend the aerial tiles into the map view or blend the entire map view into the aerial tiles. Either way, I think, you can get something that looks good. Semitransparent overlays consisted of aerial tiles might actually work, and it is in the same

Re: MKMapView compositing

2012-11-05 Thread Vincent Habchi
Hi Eve, > Use overlays. Look into ClassicMap: > https://github.com/kishikawakatsumi/ClassicMap which is doing about the same > thing using likely illegally obtained Google tiles. I’ll have a look. It is actually displaying maps *over* a cartographic background (and not some cartographic layer

Re: MKMapView compositing

2012-11-04 Thread Evadne Wu
e kind of “geographic mashup”, I’d like to > display a MKMapView on an aerial photographic background that I fetch from a > remote server, and be able to vary its transparency. Before diving into it, > is there any other option except embedding the MKMapView as a subview and > manual

MKMapView compositing

2012-11-04 Thread vincent habchi
Hi folks, for a demo app, think of it as some kind of “geographic mashup”, I’d like to display a MKMapView on an aerial photographic background that I fetch from a remote server, and be able to vary its transparency. Before diving into it, is there any other option except embedding the

Re: MKMapView annotation changes not being reflected on map display. Baffling.

2012-07-31 Thread Gavin Stokes
Never mind. The problem was an incomplete array of annotations I was maintaing. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)li

MKMapView annotation changes not being reflected on map display. Baffling.

2012-07-31 Thread Gavin Stokes
We have a problem where some underlying data changes, so we go through the annotation collection for a mapview and change the affected annotation (in this case its title); and when the associated marker on the map is tapped, the displayed text isn't changed. In other cases, an annotation is delete

Re: MKMapView: Can't keep annotations from flashing during an update. Ideas?

2012-06-29 Thread Gavin Stokes
On Tue, Jun 26, 2012 at 7:38 PM, Joe Wollard wrote: > Out of curiosity, why are you manually removing them in the first place? > MKMapView should be handling that logic for you as I understand it. If its > for performance, the docs say to make sure you dequeue the MKAnnotationView >

Re: MKMapView: Can't keep annotations from flashing during an update. Ideas?

2012-06-27 Thread Conrad Shultz
On Jun 26, 2012, at 7:38 PM, Joe Wollard wrote: > Out of curiosity, why are you manually removing them in the first place? > MKMapView should be handling that logic for you as I understand it. If its > for performance, the docs say to make sure you dequeue the MKAnnotationView >

Re: MKMapView: Can't keep annotations from flashing during an update. Ideas?

2012-06-26 Thread Joe Wollard
Out of curiosity, why are you manually removing them in the first place? MKMapView should be handling that logic for you as I understand it. If its for performance, the docs say to make sure you dequeue the MKAnnotationView instead of creating a new one when possible so that it can reuse the

MKMapView: Can't keep annotations from flashing during an update. Ideas?

2012-06-26 Thread Gavin Stokes
After the user drags the map, I do a query and update the pins on it. To prevent flashing of all the pins, I add the new (complete) collection of annotations before removing the old ones. I call addAnnotations before removeAnnotations. But the pins still flash. The map goes completely blank bef

Re: Is MKMapView just kinda messy?

2011-11-20 Thread Gordon Apple
Thanks, Kyle. This also fixed my problem with the MapView. Because MapView is so self-contained, I had it in a xib presented in a popover, and didn¹t even keep a reference to the MapView. (I do now.) On 11/20/11 2:01 PM, "cocoa-dev-requ...@lists.apple.com" wrote: > On Sat, Nov 19, 2011 at 2:

Re: Is MKMapView just kinda messy?

2011-11-19 Thread Kyle Sluder
On Sat, Nov 19, 2011 at 2:06 PM, G S wrote: >> "Examples of weak references in Cocoa include, but are not restricted to, >> table data sources, outline view items, notification observers, and >> miscellaneous targets and delegates.  [. . .] Likewise, when a delegate >> object is deallocated, yo

Re: Is MKMapView just kinda messy?

2011-11-19 Thread G S
> "Examples of weak references in Cocoa include, but are not restricted to, > table data sources, outline view items, notification observers, and > miscellaneous targets and delegates.  [. . .] Likewise, when a delegate > object is deallocated, you need to remove the delegate link by sending a

Re: Is MKMapView just kinda messy?

2011-11-19 Thread Kyle Sluder
On Sat, Nov 19, 2011 at 12:39 PM, G S wrote: > Unfortunately that's not in the documentation for MKMapView's > "delegate" property, but at least it's in the doc for the protocol. It's standard practice with delegates, as specified in the Memory Management Programming Guide: "Examples of weak ref

Re: Is MKMapView just kinda messy?

2011-11-19 Thread G S
A list member was kind enough to point this out: "Before releasing an MKMapView object for which you have set a delegate, remember to set that object’s delegate property to nil. One place you can do this is in the dealloc method where you dispose of the map view." Unfortunately that&#x

Is MKMapView just kinda messy?

2011-11-19 Thread G S
Hi all. I've been wrestling with a crash in our app for a while now. It occurs when an MKMapView calls its delegate to get an annotation view. The problem is, there shouldn't be any MKMapView in existence. The view containing it has long since been popped. The MapView was part of a v

Re: Why won't iOS app using MKMapView compile?

2011-07-08 Thread G S
Good grief. Anyway, thanks for all the help and time it took. I really appreciate it! For now, my workaround was to paste #define isinf(x)\ (sizeof (x) == sizeof(float )?__inline_isinff((float)(x))\ :sizeof (x) == sizeof(double)?__inline_isinfd((double)(x))\

Re: Why won't iOS app using MKMapView compile?

2011-07-08 Thread Kyle Sluder
On Fri, Jul 8, 2011 at 7:19 PM, G S wrote: >> If you preprocess your source file, the output will show every include and >> where it came from. Not easy to interpret, but it's all there. > > How do you do that? If you're running Xcode 3, there's a Preprocess command in the menus. If you're runn

Re: Why won't iOS app using MKMapView compile?

2011-07-08 Thread G S
> If you preprocess your source file, the output will show every include and > where it came from. Not easy to interpret, but it's all there. How do you do that? ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests

Re: Why won't iOS app using MKMapView compile?

2011-07-08 Thread Greg Parker
On Jul 8, 2011, at 6:58 PM, G S wrote: >> You should file a bug report anyway, because MapKit's headers should be >> compatible with Objective-C++. > > I will. The problem is that they're just going to bounce it back to > me with "please provide a project that demonstrates this", and since I > d

Re: Why won't iOS app using MKMapView compile?

2011-07-08 Thread G S
> You should file a bug report anyway, because MapKit's headers should be > compatible with Objective-C++. I will. The problem is that they're just going to bounce it back to me with "please provide a project that demonstrates this", and since I don't know where cmath is coming in, I don't know

Re: Why won't iOS app using MKMapView compile?

2011-07-08 Thread G S
Thanks very much for that analysis, Kyle. This blows. All of our business logic is written in C++, which I'd think is a common scenario (the paucity of "business" logic in the app store notwithstanding). This problem is occurring in a UI controller that needs to show information from a C++ object.

Re: Why won't iOS app using MKMapView compile?

2011-07-08 Thread Greg Parker
On Jul 8, 2011, at 5:51 PM, Kyle Sluder wrote: > But it's clear this is a result of using Objective-C++, not a fault in MapKit. You should file a bug report anyway, because MapKit's headers should be compatible with Objective-C++. -- Greg Parker gpar...@apple.com Runtime Wrangler ___

Re: Why won't iOS app using MKMapView compile?

2011-07-08 Thread Kyle Sluder
On Fri, Jul 8, 2011 at 5:45 PM, G S wrote: >> Are you compiling this file as Objective-C++? > > Yes, the implementation is an mm file. > Okay, that's important. Look at $SDKROOT/usr/include/c++/4.2.1/cmath and you'll see that it #undefines isinf and declares std::isinf as a wrapper. So if you ha

Re: Why won't iOS app using MKMapView compile?

2011-07-08 Thread G S
> Are you compiling this file as Objective-C++? Yes, the implementation is an mm file. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admin

Re: Why won't iOS app using MKMapView compile?

2011-07-08 Thread Kyle Sluder
On Fri, Jul 8, 2011 at 5:30 PM, G S wrote: > A search reveals that there are 29 math.h files on my system.  Of > those, these don't clearly include isinf: > > /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk/usr/include/c++/4.2.1/tr1 > /Developer/Platforms/iPhoneSimulator.plat

Re: Why won't iOS app using MKMapView compile?

2011-07-08 Thread G S
A search reveals that there are 29 math.h files on my system. Of those, these don't clearly include isinf: /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk/usr/include/c++/4.2.1/tr1 /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.0.sdk/usr/includ

Re: Why won't iOS app using MKMapView compile?

2011-07-08 Thread Greg Parker
On Jul 8, 2011, at 4:27 PM, G S wrote: > First of all, thanks a lot for the responses. > > I have compiled a couple of examples, and they do build. That makes > this all the more perplexing. The MapCallouts tutorial is one that I > tried. > In their file that uses MKMapV

Re: Why won't iOS app using MKMapView compile?

2011-07-08 Thread Gary L. Wade
On 07/08/2011 4:27 PM, "G S" wrote: >First of all, thanks a lot for the responses. >I have... >Yep, identical. >Now let's ... >I link in everything they do. >I refer to math.h ... >I've tried ... Still no dice. I've occasionally seen problems similar to this where the only recourse was either a

Re: Why won't iOS app using MKMapView compile?

2011-07-08 Thread G S
First of all, thanks a lot for the responses. I have compiled a couple of examples, and they do build. That makes this all the more perplexing. The MapCallouts tutorial is one that I tried. In their file that uses MKMapView, these are the import statements: #import #import Now the import

Re: Why won't iOS app using MKMapView compile?

2011-07-08 Thread Kyle Sluder
On Fri, Jul 8, 2011 at 4:00 PM, Conrad Shultz wrote: > As the OP noted, the error is in MapKit code and it is thus MapKit's > responsibility to include requisite headers. > > There is some more fundamental problem at play. Well, CoreFoundation.h includes according to my copy of the 4.2 SDK, and

Re: Why won't iOS app using MKMapView compile?

2011-07-08 Thread Conrad Shultz
As the OP noted, the error is in MapKit code and it is thus MapKit's responsibility to include requisite headers. There is some more fundamental problem at play. (Sent from my iPhone.) -- Conrad Shultz www.synthetiqsolutions.com On Jul 8, 2011, at 14:30, koko wrote: > I think you need to #i

Re: Why won't iOS app using MKMapView compile?

2011-07-08 Thread Kyle Sluder
On Fri, Jul 8, 2011 at 1:45 PM, G S wrote: > This is ridiculous.  The whole project is at a standstill because of > this nonsense. Since nobody else is appearing to have this problem, you might do best to whittle down your configuration into the smallest possible case that reproduces the bug. Bu

Re: Why won't iOS app using MKMapView compile?

2011-07-08 Thread Gary L. Wade
On 07/08/2011 5:39 AM, "G S" wrote: >I've imported where I declare the MKMapView... Do you mean this literally? If you put an import within an interface's variables section, I'd be surprised you don't find lots of other err

Re: Why won't iOS app using MKMapView compile?

2011-07-08 Thread koko
I think you need to #include to get the isinf macro. On Jul 8, 2011, at 2:45 PM, G S wrote: > This is ridiculous. The whole project is at a standstill because of > this nonsense. > ___ > > Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) > > P

Re: Why won't iOS app using MKMapView compile?

2011-07-08 Thread Conrad Shultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 7/8/11 1:45 PM, G S wrote: > This is ridiculous. The whole project is at a standstill because of > this nonsense. Just breathe... I have used MKMapView just as you described: add the framework, import the header, go. It works. It seems

Re: Why won't iOS app using MKMapView compile?

2011-07-08 Thread G S
This is ridiculous. The whole project is at a standstill because of this nonsense. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at

Re: Why won't iOS app using MKMapView compile?

2011-07-08 Thread G S
> The man page for "isinf" says you will need to #include and link > with -lm. Thanks, but this is in Apple's code (MKGeometry.h). If I right-click on isinf in the flagged line and jump to the definition, it finds it in math.h. ___ Cocoa-dev mailing

Re: Why won't iOS app using MKMapView compile?

2011-07-08 Thread Chris Ridd
On 8 Jul 2011, at 13:39, G S wrote: > Hi all. > > I put an MKMapView in my UI and tried to declare an IBOutlet for it, > but compilation fails with this error, in MKGeometry.h: > > "'isinf' was not declared in this scope" > > The line it'

Why won't iOS app using MKMapView compile?

2011-07-08 Thread G S
Hi all. I put an MKMapView in my UI and tried to declare an IBOutlet for it, but compilation fails with this error, in MKGeometry.h: "'isinf' was not declared in this scope" The line it's griping about is UIKIT_STATIC_INLINE BOOL MKMapRectIsNull(MKMapRect rect) { r

Re: MKMapView

2010-08-05 Thread Gerriet M. Denkmann
On 6 Aug 2010, at 00:03, Fritz Anderson wrote: > On 5 Aug 2010, at 2:57 AM, Gerriet M. Denkmann wrote: > >> I have an MKMapView which sometimes does: >> [ mapView addSubview: selectorView ]; >> and selectorView contains a UIPickerView. > > I'm not sur

Re: MKMapView

2010-08-05 Thread Fritz Anderson
On 5 Aug 2010, at 2:57 AM, Gerriet M. Denkmann wrote: > I have an MKMapView which sometimes does: > [ mapView addSubview: selectorView ]; > and selectorView contains a UIPickerView. I'm not sure why you feel it necessary to drop your selector view directly into the map view?

MKMapView

2010-08-05 Thread Gerriet M. Denkmann
I have an MKMapView which sometimes does: [ mapView addSubview: selectorView ]; and selectorView contains a UIPickerView. 1. When I interact with the pickerView, sometimes the mapView does seem to get events which are really meant for the pickerView and consequently displays annotation

Annotations in MKMapView

2010-08-02 Thread Gerriet M. Denkmann
I have an MKMapView which has about 700 annotations which represent bus-lines. That implies, they are not images, but are drawn as lines. In iOS 3 this worked fine. When the user changed the zoom level, these lines did no longer match their streets, but in mapView:regionDidChangeAnimated: I

Re: Continuous zoom in MKMapView

2010-07-07 Thread Paulo Andrade
gt; and not the approximation? I'm not sure about MKMapView but if it behaves the same way UIScrollView does... are those rects proportional to the view bounds? I'm asking this because UIScrollView does an AspectFit to the rect you pass in when zooming, so to have complete control o

Continuous zoom in MKMapView

2010-07-04 Thread Miguel Arroz
Hello, I'm trying to control a map view programmatically, and I need to zoom in and out with high accuracy (like when the user pinches it for zomming, the map may display an arbitrary level of zoom when the user stops touching the view). However, when I do it programmatically, with setRegio

[iPhone] Detect touches on MKMapView

2010-06-19 Thread Philip Vallone
Hi, Can you detect touches in a MKMapView? if so how? If not, how can I? Thanks for the help Phil ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators

Custom callout view with button over a MKMapView

2010-05-07 Thread olivier destrebecq
I created a subclass of MKAnnotationView which when selected display a callout view (similar to the MKPinAnnotationView) which is just a subclass of UIView with a button and text for now. The callout is added to the annotation view. The problem i have is that the button i put in the callout view ne

Re: UIPickerView and MKMapView

2010-05-05 Thread Fritz Anderson
On 5 May 2010, at 8:25 AM, Gerriet M. Denkmann wrote: > I have an MKMapView to which I add a subview. I have never succeeded at adding views to MKMapView, nor ever seen it succeed. The If you need to add controls, you should enclose them and the map view in a wrapper view.

UIPickerView and MKMapView

2010-05-05 Thread Gerriet M. Denkmann
I have an MKMapView to which I add a subview. This subview contains a UISegmentedControl, which can be clicked. And a UISlider which can be slidden (if such a word exists). And also a UIPickerView which stubbornly refuses to act. When I try to move the slot machine wheel, it does not budge, but

MKMapView crashes if released to early / in the wrong moment

2010-04-16 Thread Alexander Spohr
Hi list. MKMapView is crashing on 3.x if you release it too early, when any of its animations are still in progress. (rdar://7408284) I had crashes in #1 0x32d209c0 in -[MKDotBounceAnimation animationDidStop:finished:] () #1 0x0226f34e in typeinfo name for MKTileRequester () #1 0x314b986a in

iPhone: Q about MKMapView

2009-08-19 Thread Eric E. Dolecki
A few quick questions about the MKMapView: 1. I have a MKMapView set to show current location. The docs say that it updates itself every now and then to show current location on the map. It seems to always show the lat/long of where I last synced with my iTunes client. If I go home and run my app

iPhone sdk 3.0 -> MKMapView linker error

2009-07-12 Thread sathish kumar
Hi, I have upgraded my iphone sdk from 2.2.1 to 3.0. I downloaded a sample code for MapKit and was able to run it successfully. But when I tried to write my own program I faced linker errors. The error is not thrown when I import MapKit/MapKit.h or when I declare a variable as MKMapView