Lab 11: Creating the Layer Model
In the following steps, you will create a layer model.
1. Import the Script Function Library OpenWeather.aaSLIB located in your training files (folder Lab 09 - Creating the Layer Model).
2. Import the Wonderware objects Cities_Energy_Sim_Demos.aaPKG located in your training files (folder Lab 09 - Creating the Layer Model).
3. Deploy these new Wonderware objects located in the Plant_Area.
4. Double click the Layers button.
5. Click the Add New button to create a new Layer.
6. Enter Cities_L1 in the Name field.
7. Enter Cities in the Alias field.
8. Enter 16 in the Max. Zoom field.
9. Expand Markers Size and check the Enable dynamic markers size option.
10. Enter 60 in the size (%) column for zoom levels 01 to 09.
11. Enter 70, 80 and 90 in the size (%) column for zoom levels 10, 11 and 12.
12. Click Save and Close to create the new layer.
13. Click the Add New button to create a new Layer.
14. Enter Cities_L2 in the Name field.
15. Enter Cities_L2 in the Alias field.
16. Enter 3 in the Min. Zoom field.
17. Enter 16 in the Max. Zoom.
18. Expand Markers Size and check the Enable dynamic markers size option.
19. Click the Panel Hidden button to hide the layer in Layer Panel Selector.
20. Enter 20, 30, 40, and 50 in the size (%) column for zoom levels 01, 02, 03 and 04.
21. Enter 60 in the size (%) column for zoom levels 05 to 09.
22. Enter 70, 80 and 90 in the size (%) column for zoom levels 10, 11 and 12.
23. Click Save and Close to create the new layer.
24. Double click the Map Providers button.
25. Select OpenStreenMap and click the Edit button to edit the map provider.
26. Enable the Cities_L1 and Cities_L2 layers, and right click to set as default layers for the map.
27. Double click the Marker Instances button.
28. Click the Import Marker Instances button to import new cities.
29. Select Skip: Do not import in the Import Preferences dialog box.
30. Click the Ok button and select the file MarkerInstances_GD_Cities.xml located in your training files (folder Lab 09 - Creating the Layer Model).
31. Click the Close button when the process finish.
32. Open the Runtime Preview tool to see the behavior of the objects enabling the layers and zooming in/out in the map.