ThinkGeo Cloud
ThinkGeo UI Controls
ThinkGeo Open Source
Help and Support
External Resources
ThinkGeo Cloud
ThinkGeo UI Controls
ThinkGeo Open Source
Help and Support
External Resources
This is an old revision of the document!
Map Suite provides a comprehensive set of styles which will cover most mapping requirements. Read more about the Map Suite Style Guide under Style Guide. This basic styling sample for Map Suite WebAPI Edition will provide you with an introduction to the some of the available styles, including PointStyle, LineStyle, AreaStyle, CompoundStyles, and PredefinedStyles. Styles use pens, brushes and fonts to render your data on canvas. These can be used together to achieve desired effects.
In this sample we render the data with predefined styles.
Area style :basemap and water
Line style :highway
Point style :poi (points of interest)
Render areas such as polygons, ellipses and rectangles. In this sample we render three areas. Area style has fill solid brush and Outline pen. The brush has color and alpha. The pen has width also include color and alpha. We can change their values.
Renders lines and multilines. In this sample we render major roads in Frisco. Line style has center pen, inner pen, and outer pen. We can use different colors to express different traffic conditions.
Renders point with image. In this sample we render high schools in Frisco. We set the point type to bitmap, and give the path of image.
Render point with predefined symbol, including circle, square, triangle, cross, diamond, diamond2, star, star2. In this sample we using a triangle to marker the headquarters of ThinkGeo. We need to give the point symbol type, size and area style options.
Render point with character. In this sample, we render hospitals in Frisco. We set the point type to character. Giving character index, font and character solid brush.
In general styles are applied to some particular ZoomLevels. In this sample we have four sets of styles, zoom in/out we can tell the style change through different zoomlevels.