Dynamic Layer Display (dynamicshow)
Introduction
Demonstrate adding random points in the dynamic layer and dynamically scaling the added random points.
Operation effect
Figure: Dynamic Layer Display Operation Effect |
Location
Android Studio
- Product package: Product package\SampleCode\SampleCode_AndroidStudio\AndroidStudioSampleCode\dynamicshow
ADT
- Product package: Product package\SampleCode\SampleCode_ADT\DynamicShow
Data
Storage location
- Product package: Product package\SampleData\GeometryInfo
Deployment Location: mobile device internal storage\SampleData\GeometryInfo
License
Offline license, copy the license file to the "mobile device internal storage\SuperMap\License" folder.
Library
jar |
---|
com.supermap.data.jar, com.supermap.mapping.jar |
so |
libimb2d.so, libgnustl_shared.so, libQt5Core.so, libQt5Gui.so, libQt5Svg.so, libQt5Widgets.so(Note: Starting from version 11.1, the last five so libraries need to be added.) |
Key types/members
Control/Class | Method |
---|---|
DynamicView | addElement(), query(), clear() |
DynamicElement | addPoint(), addAnimator(), setStyle(), setOnClickListenner(), getID() |
Basic steps
- Click the [Add point] button to add a dynamic point object;
- Click the [Animation] button to add animation;
- Click the [Clear dynamic layer] button to empty the dynamic elements.