Author Topic: HTML in KML <description> element  (Read 2600 times)

Offline Bob Denny

  • More than Newbie
  • *
  • Posts: 80
    • View Profile
HTML in KML <description> element
« on: March 25, 2014, 05:34:59 »
What HTML is allowed in KML <description>?  For example <iframe>? HTML canvas? What will display when point info box is opened in Locus?
 

Offline Menion

  • Locus team
  • Professor of Locus
  • *****
  • Posts: 12823
  • Thanked: 952 times
  • Country: cz
    • View Profile
    • https://www.asamm.com
  • Device: Pixel 5, A12
Re: HTML in KML <description> element
« Reply #1 on: March 25, 2014, 10:50:55 »
Hmm as I know, there are no known limits. You may try even an iFrame.

Matthias here from forum should tell you lot about it. As I know, he use some editable Google Docs tables as description in points :)
- Official help (ideas, questions, problems): help.locusmap.eu
- Advanced topics, sharing of knowledges: you're here!
- LM 4 Beta download, LM 4 final download
 

Offline Bob Denny

  • More than Newbie
  • *
  • Posts: 80
    • View Profile
Re: HTML in KML &lt;description&gt; element
« Reply #2 on: March 25, 2014, 13:12:05 »
Ah, this is great news... So basically it is an embedded browser, this is great! I have some ideas.
 

Offline Menion

  • Locus team
  • Professor of Locus
  • *****
  • Posts: 12823
  • Thanked: 952 times
  • Country: cz
    • View Profile
    • https://www.asamm.com
  • Device: Pixel 5, A12
Re: HTML in KML <description> element
« Reply #3 on: March 25, 2014, 14:11:59 »
Yes it is. Whole "Description" is placed into Gecko web browser. I was only thinking if enable support for JavaScript, but in the end, it's enabled also.
- Official help (ideas, questions, problems): help.locusmap.eu
- Advanced topics, sharing of knowledges: you're here!
- LM 4 Beta download, LM 4 final download
 

Offline Bob Denny

  • More than Newbie
  • *
  • Posts: 80
    • View Profile
Re: HTML in KML &lt;description&gt; element
« Reply #4 on: March 25, 2014, 16:06:49 »
Oh that is fantastic! I can think of Javascript uses :-) this is amazing, really.
 

Offline berkley

  • Expert
  • Master of Locus
  • ****
  • Posts: 900
  • Thanked: 1 times
    • View Profile
  • Device: 1+1, N7
Re: HTML in KML <description> element
« Reply #5 on: March 27, 2014, 07:55:51 »
The last week I had a play around with bootstrap...
http://getbootstrap.com

Working very nice!  8)

Limitations and possibilities are here:
https://developers.google.com/kml/documentation/kmlreference#description

So the real limit is your imagination!  ;D

Edit:
If someone finds some time, please try to run some php based CMS like WordPress or Joomla.
« Last Edit: March 27, 2014, 07:59:46 by berkley »
Search before posting!!!
XDA Orbit, HTC Touch HD, SGS1, SGS2, Nexus S, S4 Active, OnePlus One, Innos D6000
OnePlus X
 

Offline Christian

  • Expert
  • Master of Locus
  • ****
  • Posts: 843
  • Thanked: 10 times
    • View Profile
Re: HTML in KML &lt;description&gt; element
« Reply #6 on: April 04, 2014, 13:44:55 »
Guys, stay calm. Otherwise history will repeat. So please keep away all the unsafe webstuff like js, php (!!!), and so on ...
Nobody wants to have an dangerous animated webbased picture book inside of <desc>.
Keep Locus clean!
 

Offline Menion

  • Locus team
  • Professor of Locus
  • *****
  • Posts: 12823
  • Thanked: 952 times
  • Country: cz
    • View Profile
    • https://www.asamm.com
  • Device: Pixel 5, A12
Re: HTML in KML <description> element
« Reply #7 on: April 04, 2014, 20:59:21 »
Don't worry Christian. Nothing like this will be directly in Locus. We just talk about, what is possible to display in description of points. And if anyone want's to display some iframe with by php generated pages, why not. His choice ...
- Official help (ideas, questions, problems): help.locusmap.eu
- Advanced topics, sharing of knowledges: you're here!
- LM 4 Beta download, LM 4 final download