Angular directive

kml-layer source

Description

renders Kml layer on a map Requires: map directive Restrict To: Element

Parameters

NameTypeDescription
Attr2MapOptions service

convert html attribute to Google map api options

Attributes

NameTypeDescription
url Url

url of the kml layer

KmlLayerOptions KmlLayerOptions

(https://developers.google.com/maps/documentation/javascript/reference#KmlLayerOptions)

<KmlLayerEvent> String

Any KmlLayer events, https://developers.google.com/maps/documentation/javascript/reference

Example

Usage:
  <map MAP_ATTRIBUTES>
   <kml-layer ANY_KML_LAYER ANY_KML_LAYER_EVENTS"></kml-layer>
  </map>
Example:
<map zoom="11" center="[41.875696,-87.624207]">
  <kml-layer url="https://gmaps-samples.googlecode.com/svn/trunk/ggeoxml/cta.kml" >
  </kml-layer>
</map>