This ThinkGeo WPF performance sample can render 16,000 count of rectangular shape features ; then it will distribute the shapes throughout 4 layers evenly. After clicking the [Start] button the sample application will update 1,600 rectangular shape features per 1,000 milliseconds, the time lapsed of the features being drawn will display in the application footer. Evaluators of the sample can modify the update rate, update features count, and enable or disable the layers.
Rendering performance is a pathway to a successful app and conveys confidence in customers and data acquisition specialists. A reliable rendering speed with the ability to handle a variety of shapes and requests can go a long way in showcasing your team’s skills/abilities. Thinkgeo’s WPF UI is designed to develop brilliantly detailed maps in less time thanks in large part to blazing performance as demonstrated here.
Key Features of our WPF Performance sample:
- The rectangular shape is added to an InMemoryFeatureLayer, the layer uses a ValueStyle to draw the shape. The ValueStyle has 4 Value Items which the item Id is from 0 to 3 and the item AreaStyle uses 4 different fill colors. The shape also has a column value of 0 at first. The ValueStyle will use this value to draw the shape using corresponding AreaStyle.
- In each update, the application will choose 1,600 of features from all valid features randomly to modify their column values. The column value will be modified to 0, 1, 2 or 3 circularly.
- The CustomLayerOverlay will be used during the update and the application will create a new InMemoryFeatureLayer while adding it to this overlay. Then, all 1,600 of features will be added to the layer. The previous overlay will be removed if it exists on the map, then a new overlay will be added to the map. Prior to removing the previous overlay all existing resources (including all layer tiles and background images) from the overlay will be drawn on a GeoImage, then set the GeoImage to the background image of the new overlay. We do this to make sure only 1,600 features can be rendered in each update and the previous updated features would be displayed correctly on the map.
Evaluators of the sample can check or uncheck the layers on the right-hand side of the application form. The application will only choose the features which are checked off when updating and the unchecked layers will be hidden in the map. All of ThinkGeo’s UIs offer a free 60-day evaluation period so you can make sure our components are the right ones for your project.