[TIMOB-16926] iOS: Using customView Annotation property hides the map pin
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Low |
Status | Closed |
Resolution | Duplicate |
Resolution Date | 2016-11-11T20:21:52.000+0000 |
Affected Version/s | Release 3.2.3 |
Fix Version/s | n/a |
Components | iOS |
Labels | ios |
Reporter | jayesh joshi |
Assignee | Eric Merriman |
Created | 2014-05-05T07:08:11.000+0000 |
Updated | 2017-03-23T22:49:30.000+0000 |
Description
I need the red color pin and when i click on pin custom view should appear.
var cust_View = Titanium.UI.createView({
backgroundImage : '/popup.png',
width : 154,
height : 126
});
var anno = MapModule.createAnnotation({
latitude : -33.87365,
longitude : 151.20689,
//image : '/van_green.png',
pincolor : MapModule.ANNOTATION_RED,
//customView : cust_View
});
I do like above
so it shows the cust_View on Map location
No red pin at that Location
i need both.
Please provide a complete runnable test case to investigate the issue further.
anno3 only show the custome images that i given not show pin + images ... in Documentation it says if you give custom view it will not show pin image or pincolor ... but how ever i need both ... i know it's not bug can be future request but any help...
Moving this ticket to engineering as I can reproduce the issue with the provided test case. Setting customView property causes pin to disappear from the map. A typical use case is to show the pin and then custom view should be displayed when the pin is clicked but in this case pin is not drawn when the custom view is used. It is perfectly legal to use pincolor and customView together as per documentation. Only exception is an image i.e. an image cannot be used for the pin when a customView is used but setting the pincolor together with customView is permissible.
Resolving as duplicate of MOD-2201, please follow that one, thx!
Closing ticket as Duplicate with reference to the above comments.