Closed hansemannn closed 7 years ago
@hansemannn, thanks for your PR! By analyzing the history of the files in this pull request, we identified @yozef to be a potential reviewer.
@yozef to review :-) Travis only fails because the generated $(TI_MODULE_VERSION)
compiler flag is added to 6.1.0, which isn't used in the CI, yet.
Finally was able to compile with SDK 6.1.0.GA and CLI 6.2.2.
appc run -p ios --build-only
Tested customView successfully.
Thanks man! Still wondering if infoWindow
may do the same already, I did not validate that bth. But if I understood it correctly, infoWindow
is only for showing a view when selecting an annotation.
InfoWindow = the Bubble that appears over the icon/customView -- works as expected customView = to be used in lieu of an Image icon (the annotation icon itself)
Also, the click event on infoWindow shows appropriately:
{"clicksource":"infoWindow","annotation":{"userData":{"uuid":"xxxxx-7789-4B6A-A971-605AFE7FAF90"},"title":"Hello Custom View","latitude":45.368122,"longitude":-73.913653,"subtitle":null},....
The Green background is the custom InfoWindow (bubble that appears once the icon/customView is clicked) & the red background is the customView (the annotation icon)
How can I change it's center so it put the customView center on the pin's "footer" ?
As you can see, my pin footer is on the extreme bottom of my customView
I think these should do it on Annotation:
groundOffset: {
x: 0.5,
y: 0,5
},
Addressing #86. Please check the notes regarding the sizing before, thx!