leaflet-dvf icon indicating copy to clipboard operation
leaflet-dvf copied to clipboard

Create RegularPolygonMarker in featureGroup

Open JePedrosa opened this issue 6 years ago • 0 comments

Hello, I'm trying to create a RegularPolygonMarker and add it to a layer that I already had generated, a markerCluster, but it will not let me add it to this, could someone help me? Then I pass the code of how I believe it. Thank you

puntos_red_distribucion= new L.MarkerClusterGroup();

var prueba = new L.RegularPolygonMarker([x, y], {
	color: '#000',
	weight: 1,
	fillColor: "red",
	radius: 7,
	fillOpacity: 1,
	numberOfSides: 5,
	id: consulta
});

prueba.addTo(puntos_red_distribucion)

JePedrosa avatar May 10 '18 12:05 JePedrosa