मैं इसे निर्माण के बाद विकल्प एक पत्रक पॉलीलाइन करने के लिए सौंपा बदलने के लिए (और फिर इसे प्रस्तुत करना चाहते हैं):पॉलीलाइन विकल्प बदलें पत्रक
// Add polyline
var polyline = L.polyline([], {weight:weight, opacity:1, color:'gray'}).addTo(map);
// Attempts to change color
polyline.options.color = 'blue' // doesn't render
polyline.options.color('blue') // throws error
polyline({color:'blue'}) // throws error
polyline._updateStyle(polyline) // throws error: not sure how exactly this works
polyline._updateStyle() // throws error
polyline({color:blue}) // throws error
यह संभव है?
आप एक jsfiddle या अपने कोड के साथ कुछ को खुश कर सकते हैं? यह सहायक होगा। – SamiX