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
> 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
pin = mapPin {
>pin.coordinate = location;
>pin.title = "location"
>mapView.addAnnotation(pin)
>}
>
> This MKMapViewDelegate function is called to create the annotationView
>
>func mapView(_ mapView: M
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
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
> 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
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
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
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
> 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
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
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
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.
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
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
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
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
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
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
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
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
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
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
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
>
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
>
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
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
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:
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
> "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
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
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
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
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))\
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
> 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
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
> 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
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.
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
___
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
> 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
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
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
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
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
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
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
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
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
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
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
-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
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
> 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
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'
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
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
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?
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
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
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
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
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
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
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.
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
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
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
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
70 matches
Mail list logo