Reply To: KMLin custom php map

Home Forums MapPress Support KMLin custom php map Reply To: KMLin custom php map

#10919
Chris
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"));