Skip to main content

Kml-Layer

KmlLayer component

[See](source code) ,[See](Official documentation) ,[See](Official reference)

Props

Prop nameDescriptionTypeValuesDefault
clickableIf true, the layer receives mouse events. Default value is true.
@see KmlLayerOptions interface
boolean-true
mapSpecifies the Map on which to render the KmlLayer. You can hide a KmlLayer by setting this value to null within the setMap() method
@see KmlLayerOptions interface
object-undefined
preserveViewportBy default, the input map is centered and zoomed to the bounding box of the contents of the layer. If this option is set to true, the viewport is
left unchanged, unless the map's center and zoom were never set.
@see KmlLayerOptions interface
boolean-false
screenOverlaysWhether to render the screen overlays. Default true.
@see KmlLayerOptions interface
boolean-false
suppressInfoWindowsSuppress the rendering of info windows when layer features are clicked.
@see KmlLayerOptions interface
boolean-undefined
urlThe URL of the KML document to display.
@see KmlLayerOptions interface
string-''
zIndexThe z-index of the layer.
@see KmlLayerOptions interface
number-undefined
optionsMore options that you can pass to the component
@value boolean
object-undefined