-
Notifications
You must be signed in to change notification settings - Fork 1.3k
allow for user-provided symbol imagery (aka Sprites) #941
Conversation
Are there plans for NSView for OS X? |
@kkaefer is starting to dig into this as part of the b3+ focus. |
A few observations:
Open questions:
|
Can we check for the existence/validity of the image at the time of creating the PinAnnotation object that conforms to MGLAnnotation and return nil for error cases? This way the image is guaranteed to be there whenever it needs to be processed for use in SymbolBucket. |
This becomes a bottleneck when compared to Apple's model, since images are only checked at point of need and not when added. Consider adding thousands of annotations, not necessarily yet visible, which could spawn thousands of disk checks for imagery by way of delegate callbacks... |
1.) You are right this check can be expensive in several cases e.g. if the image is an http purl. In most cases, even if the number of annotations is large, the number of unique images would be less. 2.) Maybe if the image cannot be found or loaded, we can just use a default image like "?" or any other default image. |
|
3293162
to
5f8e5ad
Compare
@incanus All of the C++ APIs should now be here. Do you want to sync up later on how the Cocoa APIs should look like? |
Open tasks that can become separate issues:
|
Per voice with @kkaefer, I am going to grab the Cocoa wrapper for this around passing user |
b2d2690 has a first cut at a Cocoa API for this.
Other notes:
|
@kkaefer 8520e71 stubs out annotation symbol cleanup inline during I will dig at this a bit, but it's crashing in Any recommendations? |
Pretend /cc @1ec5 @friedbunny on b2d2690 for thoughts on the nascent Cocoa API. |
4b62104
to
fb230dd
Compare
As part of #877, we need to take user-provided marker imagery and render it in the GL layer. We also support standard Maki icons, and beyond the iOS beta, we will support native
UIView
/ Android views tracking atop the GL view.We need an API for a user to provide a bitmap into the system and have it become part of our sprite sheet, independent of style currently in play.
/cc @kkaefer @1ec5 @bleege