Skip to content

Instantly share code, notes, and snippets.

@nati
Created March 21, 2011 03:05
Show Gist options
  • Select an option

  • Save nati/878953 to your computer and use it in GitHub Desktop.

Select an option

Save nati/878953 to your computer and use it in GitHub Desktop.
www-data@ip-10-146-13-233:~/ushahidi$ grep -R "/kml" *
application/views/markers.php:echo "<kml xmlns=\"http://www.opengis.net/kml/2.2\">\n";
application/views/markers.php:echo "</kml>\n";
application/libraries/api/MY_Kml_Api_Object.php: <kml xmlns="http://earth.google.com/kml/2.2">
application/libraries/api/MY_Kml_Api_Object.php: </kml>';
media/js/OpenLayers.js:OpenLayers.Format.KML=OpenLayers.Class(OpenLayers.Format.XML,{kmlns:"http://earth.google.com/kml/2.0"
sDesc:"Exported on "+new Date,extractAttributes:true,extractStyles:false,internalns:null,features:null,styles:null,styleBase
s*|\s*$/g,removeSpace:/\s*/g,splitSpace:/\s+/,trimComma:/\s*,\s*/g,kmlColor:/(\w{2})(\w{2})(\w{2})(\w{2})/,kmlIconPalette:/r
media/js/OpenLayers.js:"*","scale")||1);d=32*h;i=32*h;var j=this.getElementsByTagNameNS(styleTypeNode,"*","Icon")[0];if(j){v
=this.parseProperty(j,"*","h"),n="http://maps.google.com/mapfiles/kml";if(OpenLayers.String.startsWith(l,n)&&!g&&!k){k=g=64;
gExes.kmlIconPalette)){l=g[1];g=g[2];k=this.parseProperty(j,"*","x");j=this.parseProperty(j,"*","y");k=k?k/32:0;j=
media/js/OpenLayers.js:j?7-j/32:7;j=j*8+k;l="http://maps.google.com/mapfiles/kml/pal"+l+"/icon"+j+g}b.graphicOpacity=1;b.ext
{k=parseFloat(l.getAttribute("x"));j=parseFloat(l.getAttribute("y"));g=l.getAttribute("xunits");if(g=="pixels")b.graphicXOff
.graphicXOffset=-d*k;l=l.getAttribute("yunits");if(l=="pixels")b.graphicYOffset=-i+j*h+1;else if(l=="insetPixels")b.graphicY
plugins/kml/views/kml.php:$logo_path = url::base() . "plugins/kml/views/";
plugins/kml/views/kml.php: "<kml xmlns='http://www.opengis.net/kml/2.2' xmlns:gx='http://www.google.com/kml/ext/2.2' xm
>" . PHP_EOL .
plugins/kml/views/kml.php: " <img src='" . url::base() . "plugins/kml/views/logo_36x36.pn
plugins/kml/views/kml.php: " <href>" . htmlspecialchars(url::base() . "plugins/km
plugins/kml/views/kml.php: "</kml>" . PHP_EOL;
plugins/kml/views/kml.php: //$zip->addFile("plugins/kml2/views/circle_border.png", "files/circle_border.png");
plugins/kml/readme.txt:description: Creates a KML feed available at http://www.yourwebsite.com/kml
plugins/kml/readme.txt:1. Copy the entire /kml/ directory into your /plugins/ directory.
plugins/kml/readme.txt:3. Navigate to http://www.yourwebsite.com/kml to download the KML (actually a compressed KMZ file)
plugins/kml/readme.txt:4. Options for balloon content, caching, etc. are available in variables section at top of /kml/views
h
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment