Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create RegularPolygonMarker in featureGroup #127

Open
JePedrosa opened this issue May 10, 2018 · 0 comments
Open

Create RegularPolygonMarker in featureGroup #127

JePedrosa opened this issue May 10, 2018 · 0 comments

Comments

@JePedrosa
Copy link

JePedrosa commented May 10, 2018

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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant