Placemark name with superscript

151 views
Skip to first unread message

gdhuynh

unread,
Jul 2, 2013, 7:34:02 AM7/2/13
to google-map...@googlegroups.com

Hi,

 

I'm trying to overlay a line of text over the GE map such as "0.001 mcg/m^3"

 

<Placemark><name>0.001 mcg/m^3</name><description>...</description>

<gx:balloonVisibility>1</gx:balloonVisibility<Style><IconStyle><scale>0</scale></IconStyle>

<LabelStyle><scale>1.2</scale><color>8800eeff</color></LabelStyle></Style>

<Point><altitudeMode>absolute</altitudeMode><coordinates>-77.4950790405273,39.467945098877,540</coordinates></Point>

</Placemark>

 

However, I would like to use superscript for number 3 instead of ^3.

Is there a way to accomplish that in Google Earth Pro ?

 

Thanks

Barry Hunter

unread,
Jul 2, 2013, 9:25:43 AM7/2/13
to google-maps-js-api-v3
The only way I can think would be to use a Unicode charactor
might work?

KML itself can't define a superscript (or any other formatting) in the <name>






--
You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-maps-js-a...@googlegroups.com.
To post to this group, send email to google-map...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-maps-js-api-v3.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

gdhuynh

unread,
Jul 2, 2013, 10:10:58 AM7/2/13
to google-map...@googlegroups.com
Thanks Barry.
Still don't know how to apply Unicode in Notepad editor of KML file.
Can you explain further on how to enter into KML file?
Thanks again

Barry Hunter

unread,
Jul 2, 2013, 10:15:43 AM7/2/13
to google-maps-js-api-v3
I just tried

<name>0.001 mcg/m&#179;</name>

(using the entity from the link I provided) 

Seems to work in GEP at least :)


--

gdhuynh

unread,
Jul 2, 2013, 10:19:46 AM7/2/13
to google-map...@googlegroups.com

On Tuesday, July 2, 2013 7:34:02 AM UTC-4, gdhuynh wrote:

gdhuynh

unread,
Jul 2, 2013, 10:21:48 AM7/2/13
to google-map...@googlegroups.com
Wow! It works magically!
Thanks a million Barry. I wish they documented somewhere in the KML site.
Reply all
Reply to author
Forward
0 new messages