×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Nokia Developer Expert
    Join Date
    Aug 2012
    Posts
    2

    Custom icons for KML file

    HI All, I'm playing with the maps API and I'm trying to get some custom icons displayed when parsing a KML file.

    I tried setting Styles in the KML file but somehow they will not parse correctly.

    Does anybody has an example KML file with custom icons that works correctly with the KML pareser?
    Or does someone has an other solution?

    Thanks,

    JWB

  2. #2
    Nokia Developer Moderator
    Join Date
    Aug 2011
    Location
    Berlin
    Posts
    288

    Re: Custom icons for KML file

    The English Premiership Football example: here uses <Style> and <IconStyle> as well as inline styles.


    You want something like:
    Code:
    <Style id='LINKED_STYLE_ID'>
    <IconStyle><Icon><href>URL GOES HERE ....</href></Icon>
    <hotSpot x="16" y="32" xunits="pixels" yunits="pixels"/>
    </IconStyle>
    </Style>
    <Placemark>
    <name>Name</name>
    <description><![CDATA[<div >HTML Description</div>]]></description>
    <Point><coordinates>-2.96632468700409,53.438828522666,0</coordinates></Point>
    <styleUrl>#LINKED_STYLE_ID</styleUrl>
    </Placemark>
    The HTML and JavaScript are basically a copy of the Playground Example

Similar Threads

  1. How to add icons to custom buttons ?????
    By deepak4u2006 in forum Symbian Media (Closed)
    Replies: 7
    Last Post: 2011-05-05, 10:37
  2. How To Custom Theme Using 3rd Party Icons
    By chenloong in forum Themes/Carbide.ui
    Replies: 2
    Last Post: 2008-06-17, 12:41
  3. How to draw custom icons?
    By jennie in forum Symbian User Interface
    Replies: 6
    Last Post: 2007-10-20, 09:44
  4. Can custom folders have diffferent icons?
    By e_prakhar in forum Symbian Tools & SDKs
    Replies: 0
    Last Post: 2007-01-13, 04:51

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •