0
votes

I display polylines using KML layer on top of a google map.

These polylines represent streets, but I need to show them using KML because of application needs.

The problem is that when KML features are drawn on top of streets already in Google Maps, the street names get obscured as KML lines draw on top of them.

I would like Google maps to draw its street labels on top of polylines drawn from my KML file.

Can I control draw priority of google maps' own street labels?

I have tried to include names of polylines in the KML using Name sibling in each Placemark section but no matter what I do, names from KML do not show up in the Google maps either.

I am using API v3.

1

1 Answers

2
votes

The KmlLayers are rendered over the map tiles. You can either change the opacity of the polylines in the KML so the labels are visible through them or add overlays on top of the KmlLayer to show the names. Those overlays would not be part of the KML, one option for adding them would be to use the InfoBox utility library.