GraphicsLayer adds points as svg path instead of svg circle

604
2
06-02-2014 02:11 AM
ThomasCoopman
New Contributor II
I'm trying to style my graphicsLayer with css instead of a custom renderer.
The problem is that the GraphicsLayer with styling = false and adds points as svg path instead of circles. These paths are very small and not stylable.

I was wondering why the GraphicsLayer doesn't add circle elements to the map if styling is set to false. The workaround that I see is that I could set styling to true and still provide styling with css, but then I also need a custom renderer.

So, can I enforce GraphicsLayer to add points as svg circle?

(To clarify, I have multiple geometry types on the graphicslayer. Otherwise I could just set the default symbol to be a circle, but because I also have lines and polygons I cannot use this solution.)
0 Kudos
2 Replies
ThomasCoopman
New Contributor II
Does someone have an idea how I could change this? I was wondering if it was possible to have something as a GeometryRenderer that draws a different symbol depending on the input geometry?
0 Kudos
ThomasCoopman
New Contributor II
I gave this another look but still haven't found a good solution.
Ideally there would be a GeometryDependentRenderer (like ScaleDependentRenderer), that has a symbol for every type of geometry.

Can I implement something like that myself?
0 Kudos