Home › Forums › MapPress Support › KMLin custom php map › Reply To: KMLin custom php map
November 27, 2012 at 7:01 am
#10919
Keymaster
Hi, assuming you’ve already seen the example PHP code in the docs, you just need to set two things for the POI to display KML:
1) $poi->type = “kml”
2) $poi->kml = http://mykmlurl.kml
For example:
$mypoi= new Mappress_Poi(array("iconid" => "green-dot", "title" => "KML Example", "type" => "kml", "kml" => "http://kml-samples.googlecode.com/svn/trunk/kml/Region/polygon-min-max.kml"));