Hi All,
I’m using Gradient style as custom area style for a PostgreSqlFeatureLayer to display a map with bathymetry. Is it possible to display the color legend also in the map with corresponding colors and values used?
Thanks and Regards
Amila
Hi All,
I’m using Gradient style as custom area style for a PostgreSqlFeatureLayer to display a map with bathymetry. Is it possible to display the color legend also in the map with corresponding colors and values used?
Thanks and Regards
Amila
Deal Amila,
Thanks for your post, if you want to show a legend, there is a sample you can use:
wiki.thinkgeo.com/wiki/Map_Suite_Services_Edition_Miscellaneous_Samples#Show_A_Legend
Any more questions please feel free to let me know.
Regards,
Gary
Dear Gray,
Does this require version 5? Currently I’m having version 4.5.
Thanks
Amila
Amila,
Yes, it’s new function in MapSuite 5.0. You need update to 5.0 to use it.
Any questions about legend you can tell me.
Regards,
Gary
Thank you Gray
Amila,
You are welcome.
Regards,
Gary
Dear Gray,
I have installed Version 5 and now trying to implement legend for the Mesh (from PostgresFeatureLayer) I used to display bathymetry of the area. I use GradientStyle to generate bathymetry where I only set min value, min color and max value and max color. GradientStyle automatically generate color levels according to values of corresponding column. I was not able to retrieve the gradient (value and color pair) it used to draw the mesh.
As I understood I need to set text and display picture for each legend Item manulay. Isn’t there any method to use automatic legend item generation according to GradinetStyle used for map? If there is no such option, am I able to retrieve the value and color pair generated by gradient style so that I could add those values and colors manually in Legend Items.
Sample legend I’m interested to create is as follow.
Thanks and Regards
Amila
Amila,
Thank you for your post, the LegendLayer didn’t have a method to automatically show the GradinetStyle. you can have a look at this post to find out how to deal with this situation.
gis.thinkgeo.com/Support/DiscussionForums/tabid/143/aff/21/aft/9399/afv/topic/Default.aspx
Regards,
Gary
Thanks Gray,
I switch to class break style and made it work.
Regards
Amila
Amila,
You are welcome.
Any more questions please feel free to let me know.
Regards,
Gary