2016-08-06 12 views
0

Ich habe folgendes Symbolcode:Google Maps API v3 - Hinzufügen von Text zu Symbol

var lineSymbol = { 
    path: google.maps.SymbolPath.CIRCLE, 
    strokeOpacity: 0, 
    fillColor: 'red', 
    fillOpacity: 1, 
    scale: 20 
}; 

, die zu einem Linienzug wie so hinzugefügt wird:

m[i] = new google.maps.Polyline({ 
    path: f0, 
    icons: [{ 
    icon: lineSymbol, 
    offset: '50%' 
    }], 
    geodesic: true, 
    strokeColor: 'red', 
    strokeOpacity: 0.6, 
    strokeWeight: 5 
});  

Dies ist in der folgenden Ergebnisse, eine rote Kreis in der Mitte jeden Linienzug:

polyline example

Meine Frage ist, ist es möglich, h Hast du einen Text im Kreis? Wenn das so ist, wie?

Antwort