Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-12938] Android: Google map v2 module, annotation image path inconsistent with standard

GitHub Issuen/a
TypeBug
PriorityHigh
StatusOpen
ResolutionUnresolved
Affected Version/sn/a
Fix Version/sn/a
ComponentsAndroid
Labelsgoogle, map, module, v2
ReporterCarter Lathrop
AssigneeUnknown
Created2013-03-04T04:08:41.000+0000
Updated2018-02-28T20:04:27.000+0000

Description

*Problem* The file path format for annotation image is not consistent with the standard which should be: '/images/image.png'. Rather in order to get the image the path currently needed to be provided is: 'images/image.png'
MapModule.createAnnotation({
                latitude : 32.943868
                longitude : -96.836114,
                image : imagePath,
                title : 'My Home',
                subtitle : 'Nice place',
                leftButton : leftImage,             
            });
the imagePath is not taken if it is under any folder, doesn't matter it is under folder "android" or not, ( I usually put android specific images under android,), but it works partially when I put the image directly under resource folder, so in a word, 'home.png' works '/img/home.png' will not work, if I don't have the leading slash in the path, having images under folder works, so the imagePath needs to be 'img/abc/home.png', then it can work. However, this is not consistent with current standard.

Comments

  1. jason hu 2013-03-04

    I just found out if I don't have the leading slash in the path, having images under folder works, so the imagePath needs to be 'img/abc/home.png', then it can work. However, this is not consistent with current standard.
  2. Carter Lathrop 2013-03-04

    removed "leftButton seems to be not supported any more, it is not even in API doc", only one issue per ticket please.
  3. Daniel Sefton 2013-05-30

    What Ti SDK version are you using?

JSON Source