02-03-2014 06:33 PM
I'm having an annoying problem with Cascades Markers .
I'd like to set a custom icon for the marker on the map (i.e. an image located in "assets/images/me.png" ), but I can't set it properly.
The problem is related to the iconUri parameter, which I tried to set it to the following values:
but none of these did the trick. I simply didn't see the Marker.
The weird thing is that if I set it to an image which is not in my assets (e.g. "/usr/hmi/lbs/purple_pin.png" ), it does work without any issue.
Looking for a solution, I found that BlackBerry's MapView sample set the iconUri this way:
"Nice!" I thought. So I imported <bb/UIToolkitSupport> and called that function in the exact same way... but the compiler reported Simulator (what the...?!) errors and stopped.
Well, I hope someone had the same nonsense problem and can help me.
In addiction, I'd like to know if there is a list of the files contained in the "/usr/hmi/lbs/" directory somewhere, since at least I could use those files as Marker icon
Thank you very much, I would be lost without this community
02-04-2014 06:59 AM
To access the icons you can start a SSH session using Momentics and copy them across.
Just go to the Debug Perspective -> Target File System Navigator.
Right-click on the device and select Launch SSH session.
02-04-2014 07:05 AM