Welcome guest, is this your first visit? Click the "Create Account" button now to join.
Results 1 to 4 of 4
  1. #1
    Junior Member
    Join Date
    Aug 2014
    Location
    France
    Age
    81
    Posts
    4
    Rep Power
    0

    Default IGO function HTML to center image for KML to IGO

    Hello
    I'm on a software to create files in KML format
    I am looking for the function and the piece of code to center an icon
    so that it is not superimposed on another

    the normal code gives this
    <Folder><name>30km</name><metadata><igoicon><filename>30.bmp</filename></igoicon></metadata>

    How to add the tag to center or offset the icon
    thanks in advance


    Bonjour
    je suis sur un soft pour créer des fichiers au format KML
    je suis a la recherche de la fonction et le bout de code pour centrer un icone
    afin qu'elle ne soit pas superposée sur une autre

    le code normal donne ceci
    <Folder><name>30km</name><metadata><igoicon><filename>30.bmp</filename></igoicon></metadata>

    Comment rajouter la balise pour centrer ou déporter l'icone
    d'avance merci
    Last edited by Boki; 2nd December 2022 at 07:07 PM. Reason: moved to proper section, approved

  2.    Advertissements


  3. #2
    Master
    Join Date
    Mar 2017
    Location
    Germany
    Posts
    806
    Rep Power
    590

    Default

    sorry 😉
    I get the suspicion: You want to reinvent the wagon wheel 🤔
    There is enough software, converters, icon editors and, above all, knowledge about the structure with all the possibilities of an igo kml (not google-compliant KML!
    Spoiler: template

    <Document><name>Einkauf - ALDI u. Co</name><description>zuletzt bearbeitet: 28.11.2022</description>
    <metadata><igoicon><filename>EINKAUF-ALDI-UND.bmp</filename></igoicon></metadata>
    <!-- ALDI-Nord -->
    <Folder><name>ALDI Nord</name>
    <metadata><igoicon><filename>ALDI-NORD.bmp</filename></igoicon></metadata>
    <!-- PLZ 01 -->
    <Placemark><name>ALDI-Nord in Dresden-Innere Altstadt</name>
    <address>im EKZ Altmarkt Galerie - UG</address>
    <description>Innenstadtlage | Webergasse in 01067 Dresden | [Only registered and activated users can see links. ] [2022]</description>
    <metadata><telephone>+498007234870</telephone></metadata>
    <Point><coordinates>13.736478,51.049223</coordinates></Point>
    </Placemark>

    German says: "many roads lead to Rome" 😉
    Last edited by rondoan; 2nd December 2022 at 09:46 PM.
    ---
    ex calipoint say: my Knowledge of today is what I read yesterday 🧐😉

  4. #3
    Master IGO function HTML to center image for KML to IGOIGO function HTML to center image for KML to IGO
    Join Date
    Nov 2017
    Location
    europa
    Posts
    81
    Rep Power
    161

    Default

    there is no possibility to shift the icons displayed directly on the map from a KML file, there is however a system parameter that supports the reference position for their display but this affects all POIs and speed cameras

    [poi]
    force_center_poi_icon=1

    each icon is either drawn from bottom to top on the geographic position or the center of the image is adjusted to the position.

    In this second configuration, by drawing a layer centered on the position, all you have to do is draw the desired image in reduced size in the frame, which will give the appearance of the desired shift according to its placement on the layer.

  5. #4
    Master
    Join Date
    Mar 2017
    Location
    Germany
    Posts
    806
    Rep Power
    590

    Default

    right: the optical display left/right is possible by object position within a given bitmap size.
    But then the meta-tag <igoicon> must be specified explicitly for each data set <Placemark>....
    Last edited by rondoan; 3rd December 2022 at 01:58 PM.
    ---
    ex calipoint say: my Knowledge of today is what I read yesterday 🧐😉

 

 

Bookmarks

Posting Permissions

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