[OpenLayers-Commits] r4740 - in sandbox/crschmidt/kml/examples: . kml
commits at openlayers.org
commits at openlayers.org
Mon Oct 1 16:12:11 EDT 2007
Author: crschmidt
Date: 2007-10-01 16:12:08 -0400 (Mon, 01 Oct 2007)
New Revision: 4740
Added:
sandbox/crschmidt/kml/examples/kml/points.kml
Modified:
sandbox/crschmidt/kml/examples/kml-layer.html
Log:
add kml/points.kml from Frank's email and set up kml-layer to use it.
Added: sandbox/crschmidt/kml/examples/kml/points.kml
===================================================================
--- sandbox/crschmidt/kml/examples/kml/points.kml (rev 0)
+++ sandbox/crschmidt/kml/examples/kml/points.kml 2007-10-01 20:12:08 UTC (rev 4740)
@@ -0,0 +1,162 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<kml xmlns="http://earth.google.com/kml/2.0">
+<Document>
+ <!--MetaCarta GTS v3.7.0, KML Search API v1.0.0-->
+ <name><![CDATA[MetaCarta: ]]></name>
+ <description><![CDATA[Labeling <b>28</b> locations. Of 27,281,538 total documents, <b>~26,900,000</b> documents match <i><no keywords></i> in this region.]]></description>
+ <visibility>1</visibility>
+<LookAt>
+ <longitude>-82.575000</longitude>
+ <latitude>27.498610</latitude>
+ <range>6000000.0</range>
+ <tilt>0.0</tilt>
+ <heading>0.0</heading>
+</LookAt>
+ <Style id="rel1.0">
+ <IconStyle>
+ <Icon>
+ <href>http://developers.metacarta.com/img/symbols/mc1.0.png</href>
+ </Icon>
+ </IconStyle>
+ </Style>
+ <Style id="rel0.9">
+ <IconStyle>
+ <Icon>
+ <href>http://developers.metacarta.com/img/symbols/mc0.9.png</href>
+ </Icon>
+ </IconStyle>
+ </Style>
+ <Style id="rel0.8">
+ <IconStyle>
+ <Icon>
+ <href>http://developers.metacarta.com/img/symbols/mc0.8.png</href>
+ </Icon>
+ </IconStyle>
+ </Style>
+ <Style id="rel0.7">
+ <IconStyle>
+ <Icon>
+ <href>http://developers.metacarta.com/img/symbols/mc0.7.png</href>
+ </Icon>
+ </IconStyle>
+ </Style>
+ <Style id="rel0.6">
+ <IconStyle>
+ <Icon>
+ <href>http://developers.metacarta.com/img/symbols/mc0.6.png</href>
+ </Icon>
+ </IconStyle>
+ </Style>
+ <Style id="rel0.5">
+ <IconStyle>
+ <Icon>
+ <href>http://developers.metacarta.com/img/symbols/mc0.5.png</href>
+ </Icon>
+ </IconStyle>
+ </Style>
+ <Style id="rel0.4">
+ <IconStyle>
+ <Icon>
+ <href>http://developers.metacarta.com/img/symbols/mc0.4.png</href>
+ </Icon>
+ </IconStyle>
+ </Style>
+ <Style id="rel0.3">
+ <IconStyle>
+ <Icon>
+ <href>http://developers.metacarta.com/img/symbols/mc0.3.png</href>
+ </Icon>
+ </IconStyle>
+ </Style>
+ <Style id="rel0.2">
+ <IconStyle>
+ <Icon>
+ <href>http://developers.metacarta.com/img/symbols/mc0.2.png</href>
+ </Icon>
+ </IconStyle>
+ </Style>
+ <Style id="rel0.1">
+ <IconStyle>
+ <Icon>
+ <href>http://developers.metacarta.com/img/symbols/mc0.1.png</href>
+ </Icon>
+ </IconStyle>
+ </Style>
+ <Style id="rel0.0">
+ <IconStyle>
+ <Icon>
+ <href>http://developers.metacarta.com/img/symbols/mc0.0.png</href>
+ </Icon>
+ </IconStyle>
+ </Style>
+
+<Placemark>
+<!-- OGM5MmVhYTI3MTRkNzY2NDQ5YzgzMjBkYzQ3M2Q1YzYsaWJlcnVzLm1ldGFjYXJ0YS5jb206MTYwNzBfMTE2MzYyMjk0MV8xMTcyNjg1ODk5XzAwOjE4OjhiOjM4OjM2OjQ3LDE2NjI2ODQ=, 0.959452 -->
+<name><![CDATA[Bradenton]]></name>
+<description><![CDATA[<a href="http://www.fhp.state.fl.us/html/TroopF/Bradenton.html">FHP: Troop F Bradenton District</a><br>FHP: Troop F <font color="red">Bradenton</font> District Bradento<br>FHP: Troop F Bradenton District Bradenton District The Bradenton District is located at Troop F Headquarters and includes all of Manatee County. The Bradenton District ...<br><br>]]></description>
+<styleUrl>#rel1.0</styleUrl>
+<Point>
+ <coordinates>-82.575000, 27.498610</coordinates>
+</Point>
+</Placemark><Placemark>
+<!-- N2M0OTk4NzMxMWFjOGQ1MzgwY2NmNzBlOWIzODg3OGYsdW1icm86MTYxMzlfMTE2OTg0MDM4MV8xMTY5ODQ1MDQ5XzAwOjE4OjhiOjNhOjcwOmZkLDE4NTQzNw==, 0.959452 -->
+<name><![CDATA[Pezinok]]></name>
+<description><![CDATA[<a href="http://en.wikipedia.org/wiki/Pezinok"> Pezinok</a><br><font color="red">Pezinok</font> Coor titl<br>Pezinok Coor title dm4616N1716Etype:cityregion:SK Infobox Slovak town image_coat_of_arms subject_name Pezinok slovak_region Bratislava Region slovak_district ...<br><br>]]></description>
+<styleUrl>#rel1.0</styleUrl>
+<Point>
+ <coordinates>17.266666, 48.283333</coordinates>
+</Point>
+</Placemark><Placemark>
+<!-- MzE1OWQ0MTUwNTUzOGQxODBiNGYwZjU3MThmYzMwY2IsanVsaWEubWV0YWNhcnRhLmNvbToxNjAzNl8xMTYzNjM0MjI4XzExNjU5Nzk3MTVfMDA6MTg6OGI6MzU6MDA6ZGMsNzQ3MzQ2, 0.959452 -->
+<name><![CDATA[Purcellville]]></name>
+<description><![CDATA[<a href="http://www.loudoun.gov:80/compplan/purcellville.htm">Purcellville Urban Growth Area Management Plan</a><br><font color="red">Purcellville</font> Urban Growth Are<br>Purcellville Urban Growth Area Management Plan Skip Navigation Purcellville Urban Growth Area Management Plan Welcome to the Purcellville Urban Growth Area Management ...<br><br>]]></description>
+<styleUrl>#rel1.0</styleUrl>
+<Point>
+ <coordinates>-77.715000, 39.136670</coordinates>
+</Point>
+</Placemark><Placemark>
+<!-- N2UxY2EwYzY0YzBhMTAzNTg1NWFkY2YzZWU2NjdhZWIsa3VwYS5tZXRhY2FydGEuY29tOjE2MDAxXzExNjM2NjM1MjRfMTE2NzM0NjY3NF8wMDoxODo4YjozODozNjo3OSw5MzY1NDI=, 0.958984 -->
+<name><![CDATA[Calaveras County]]></name>
+<description><![CDATA[<a href="http://www.co.calaveras.ca.us:80/departments/pub_health/PHD_WNV.html">Calaveras County Public Health</a><br><font color="red">Calaveras County</font> Public Healt<br>Calaveras County Public Health County of Calaveras Public Health Department West Nile Virus (WNV) WNV is a disease that is spread to ...<br><br>]]></description>
+<styleUrl>#rel1.0</styleUrl>
+<Point>
+ <coordinates>-120.583330, 38.166670</coordinates>
+</Point>
+</Placemark><Placemark>
+<!-- ZWFhZDJkYTk0MmNlMWU4Yzc1OWViODIyYzU5ZGE4ZDcsdW1icm86MTYxNDFfMTE2OTg0ODM4M18xMTY5ODUxMDgxXzAwOjE4OjhiOjNhOjcwOmZkLDUxNTIw, 0.958964 -->
+<name><![CDATA[Kolkata]]></name>
+<description><![CDATA[<a href="http://en.wikipedia.org/wiki/Kolkata_Film_Festival"> Kolkata Film Festival</a><br><font color="red">Kolkata</font> Film Festiva<br>Kolkata Film Festival '''Kolkata Film Festival''' is an annual international film festival held in Kolkata in the Indian state of West Bengal ...<br><br>]]></description>
+<styleUrl>#rel1.0</styleUrl>
+<Point>
+ <coordinates>88.369722, 22.569722</coordinates>
+</Point>
+</Placemark><Placemark>
+<!-- ZDhiYjJhNTZlNmM1ZGU4YjAzOWZiNTc5NzAxM2RlNWYsaWJlcnVzLm1ldGFjYXJ0YS5jb206MTYwNzJfMTE2MzY4NTU2MV8xMTcyNjg1OTAyXzAwOjE4OjhiOjM4OjM2OjQ3LDk2NTMxOA==, 0.958964
+ZDEwNjIwYTdjMjc2MmM4MDQ3NWNjYTY0ZWVjZDI4MjAsaWJlcnVzLm1ldGFjYXJ0YS5jb206MTYwNzBfMTE2MzYyMjk0MV8xMTcyNjg1ODk5XzAwOjE4OjhiOjM4OjM2OjQ3LDMwNTU0OQ==, 0.958475
+YmVjMjRjZTYxZDJhYjMyYTE3MjY0YzNkNTg4ODMyYzIsa3VwYS5tZXRhY2FydGEuY29tOjE2MDAwXzExNjM2MzI4MDhfMTE2NzM0NjY3Ml8wMDoxODo4YjozODozNjo3OSw4ODg2Mw==, 0.958475 -->
+<name><![CDATA[South Yorkshire]]></name>
+<description><![CDATA[<a href="http://www.southyorkshire.nhs.uk:80/strategy/index.htm">South Yorkshire Strategic Health Authority - Events - Deliver...</a><br><font color="red">South Yorkshire</font> Strategic Healt<br>South Yorkshire Strategic Health Authority - Events - Delivering Excellence event 12th June 2003 Welcome What's new Local services Performance --> Strategy Service redesign ...<br><br><a href="http://www.southyorkshire.nhs.uk:80/">South Yorkshire Strategic Health Authority - Welcome</a><br><font color="red">South Yorkshire</font> Strategic Healt<br>South Yorkshire Strategic Health Authority - Welcome --> Welcome What's new Local services Performance --> Strategy Service redesign Franchise plan Local delivery plan Structure ...<br><br><a href="http://www.southyorkshire.nhs.uk:80/index.html">South Yorkshire Strategic Health Authority - Welcome</a><br><font color="red">South Yorkshire</font> Strategic Healt<br>South Yorkshire Strategic Health Authority - Welcome --> Welcome What's new Local services Performance --> Strategy Service redesign Franchise plan Local delivery plan Structure ...<br><br>]]></description>
+<styleUrl>#rel1.0</styleUrl>
+<Point>
+ <coordinates>-1.250000, 53.450000</coordinates>
+</Point>
+</Placemark><Placemark>
+<!-- MWE4NWQ2N2U4ZmI3MDk5MjNiNmJlYzE4NzMxOTdhOTIsanVsaWEubWV0YWNhcnRhLmNvbToxNjUyNF8xMTY5ODQzMzQ1XzExNjk4NDg2OTRfMDA6MTg6OGI6MzU6MDA6ZGMsNTI1OTcx, 0.958964
+ZDZjY2I2Mjk2OTNmMmVjMGJhMzY1NTIyMGEzZGZjYTQsanVsaWEubWV0YWNhcnRhLmNvbToxNjUwMl8xMTY5ODMwMDU5XzExNjk4MzU0MThfMDA6MTg6OGI6MzU6MDA6ZGMsMjMwNjQw, 0.958475 -->
+<name><![CDATA[Gaithersburg]]></name>
+<description><![CDATA[<a href="http://alert.gaithersburgmd.gov/faq.php">Frequently Asked Questions</a><br>What is Alert <font color="red">Gaithersburg</font>? What is an Aler<br>... email address password Lost password? Gaithersburg Home Alert Home New User Learn More FAQ Support Frequently Asked Questions What is Alert Gaithersburg? What is an Alert Gaithersburg account? How does Alert Gaithersburg work? Will my cell phone work? What is text messaging and ...<br><br><a href="http://alert.gaithersburgmd.gov/index.php?CCheck=1">Alert Gaithersburg</a><br>Alert <font color="red">Gaithersburg</font> USER LOGIN emai<br>Alert Gaithersburg USER LOGIN email address password Lost password? Gaithersburg Home Alert Home New User Learn More FAQ Support This application requires Javascript ...<br><br>]]></description>
+<styleUrl>#rel1.0</styleUrl>
+<Point>
+ <coordinates>-77.201670, 39.143330</coordinates>
+</Point>
+</Placemark><Placemark>
+<!-- ZjQ4MDJjN2FiNzMxNjk3NzNkN2ZhNDQzZDk5OTkxYTgsaWJlcnVzLm1ldGFjYXJ0YS5jb206MTYwNzJfMTE2MzY4NTU2MV8xMTcyNjg1OTAyXzAwOjE4OjhiOjM4OjM2OjQ3LDU4OTU1Mw==, 0.958964 -->
+<name><![CDATA[Pocatello]]></name>
+<description><![CDATA[<a href="http://www.idahoparks.org/about/permits/bannock_ski.html">Bannock</a><br>Cycle 404 S Arthur <font color="red">Pocatello</font> 232.3711 City o<br>Bannock Bannock County Gateway Cycle 404 S Arthur Pocatello 232.3711 City of Pocatello 902 Sherman St Pocatello 234.6237 ISU Outdoor Program Student Union Bldg Pocatello 236.3912 The ...<br><br>]]></description>
+<styleUrl>#rel1.0</styleUrl>
+<Point>
+ <coordinates>-112.444720, 42.871390</coordinates>
+</Point>
+</Placemark>
+</Document>
+</kml>
\ No newline at end of file
Modified: sandbox/crschmidt/kml/examples/kml-layer.html
===================================================================
--- sandbox/crschmidt/kml/examples/kml-layer.html 2007-10-01 20:10:18 UTC (rev 4739)
+++ sandbox/crschmidt/kml/examples/kml-layer.html 2007-10-01 20:12:08 UTC (rev 4740)
@@ -19,8 +19,8 @@
layer = new OpenLayers.Layer.WMS( "OpenLayers WMS",
"http://labs.metacarta.com/wms/vmap0", {layers: 'basic'} );
map.addLayer(layer);
- map.addLayer(new OpenLayers.Layer.GML("KML", "kml/lines.kml", {format: OpenLayers.Format.KML}));
- map.zoomToExtent(new OpenLayers.Bounds(-112.306698,36.017792,-112.03204,36.18087));
+ map.addLayer(new OpenLayers.Layer.GML("KML", "kml/points.kml", {format: OpenLayers.Format.KML}));
+ map.zoomToMaxExtent();
}
</script>
</head>
More information about the Commits
mailing list