JoseJe
unread,Nov 29, 2012, 6:40:34 PM11/29/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to timemap-d...@googlegroups.com
How to add the KML color to the timemap?
Hi! I would like to do a kml timemap but taking the color of my kml, like it happens in Google Earth. Someone can help me? I dont want to add the custom themes.
Thanks.
The KML code (only first placemark):
<Placemark id="kml_132">
<name>NORUEGA</name>
<snippet> </snippet>
<description>...
</description>
<TimeStamp>
<when>2008</when>
</TimeStamp>
<Style>
<IconStyle>
<scale>0.8</scale>
</IconStyle>
<LabelStyle>
<scale>1.0</scale>
</LabelStyle>
<LineStyle>
<color>fffff2f2</color>
<width>1.0</width>
<gx:labelVisibility>1</gx:labelVisibility>
</LineStyle>
<PolyStyle>
<color>bffff2f2</color>
</PolyStyle>
</Style>
<ExtendedData>...
</ExtendedData>
<MultiGeometry>
<MultiGeometry>
<Polygon>
<outerBoundaryIs>...
....
The TimeMapJS code:
$(function () {
tm = TimeMap.init({
mapId: "mapa", // Id of map div element (required)
timelineId: "timeline", // Id of timeline div element (required)
options: {
mapZoom: 3,
mapType: "physic",
mapCenter: coordenadas
},
datasets: [
{
id: "SSS_T",
title: "SSS",
theme: "theme",
// note that the lines below are now the preferred syntax
type: "kml",
options: {
url:"Hinterland_main2.kml",
extendedData: ["ID".....]
}
}
],
bandInfo:..........