Drawing arrows on map component

#1

In order to draw arrows on a map from one geographic point to another, do I need to use a custom impementation based on the base map? Or can it be done through configuration?

The only thing i found that might be useful in the Map class docs is the kml property that says “Config object for the KML layer”, but has no other information about how to use it. I know in KML that you can draw lines and such.

0 Likes

#2

I think the documentation for kml is incorrect—it is used as the url for KmlLayer data.

In order to draw arrows you will have to create a custom component that extends the base map, and implement onRender function that draws arrows via the google maps APIs. this.map is an instance of google.maps.Map.

0 Likes