hi,
Please help me,
i need to plot points with different shapes and different colors on single layer.
i am getting all points with the same pointtype and same color.
Thanks,
Ravi B
hi,
Please help me,
i need to plot points with different shapes and different colors on single layer.
i am getting all points with the same pointtype and same color.
Thanks,
Ravi B
Hello Ravi,
Thank you for your post.
If you want to draw different points for your InMemoryLayer you can use either the ValueStyle, ClassBreakStyle or RegExStyle. Each of these will allow you to draw a different type of point symbol for each point based upon a column value in your InMemoryLayer.
And here is the detail for three style:
ValueStyle : This class allows you to match a value with data in the feature to determine how to draw that feature.
ClassBreakStyle : This class represents a style based on class break values(A range of values).
RegExStyle : This class allows you to draw features differently based on regular expression matching.
I think that the sample Sized Point Style wiki.thinkgeo.com/wiki/Map_Suite_De...oint_Style can fit your situation . It presents a custom Point Style whose size is proportional to a value from some column.
Let us know if you meet problems.
Regards,
Gary
Ravi,
Did you need the points to be random colors?
David
hi david,
i need the points to be different shapes and different colors based on latitude and longitude values .
and those points should be plot on single InMemoryLayer.
please help me
Regards,
Ravi Bokkala
Ravi,
About the part of adding points on an InMemoryFeatureLayer. This is a very simple and common task. I recommend you look at for example the sample Plot a point on the map under the Dynamic Shapes category of the How Do I samples.
For having your points displaying with different styles according to the location (longitude/latitude) of its points. I think that you will need a custom style for this. You can look at the sample Scaling Image Style of the Code Community. It shows how the style changes in size based on the scale of the map. In your case, this is based on the location but you can see how this is done in the sample and adapt for your case. I don't know how you plan exactely on having the style changing based on location but with a custom style you can implement exactely as you need. Thank you.
wiki.thinkgeo.com/wiki/Map_Suite_Wp...mage_Style