| | 1 | = Styler = |
| | 2 | [[ToC]] |
| | 3 | |
| | 4 | We need a GUI to allow users to do Styling of different Layers: |
| | 5 | * Polygon Feature layers |
| | 6 | * Shapefile layers |
| | 7 | * Theme layers |
| | 8 | |
| | 9 | The Style is stored in the per-config link table with the layer, so that the same data can be styled differently for different users. It is a JSON structure: |
| | 10 | * https://github.com/flavour/eden/blob/master/modules/s3db/gis.py#L2007 |
| | 11 | |
| | 12 | == Basic == |
| | 13 | * Read current setting |
| | 14 | * Predefined palette |
| | 15 | * Updates Layer Setting |
| | 16 | * Updates All Features in realtime |
| | 17 | * http://dev.openlayers.org/docs/files/OpenLayers/Style-js.html |
| | 18 | * addRules() |
| | 19 | * applySymbolizer() |
| | 20 | * Initial applying of style to features not possible via feature.layer.style as not yet set |
| | 21 | * Save of setting occurs with rest of Map save (also provide explicit option within widget or do automatically?) |
| | 22 | |
| | 23 | == Advanced == |
| | 24 | * http://gxp.opengeo.org/master/examples/histogram.html |
| | 25 | * Add ability to select colours/opacity/etc: |
| | 26 | * http://gxp.opengeo.org/master/examples/symbolizer.html |
| | 27 | * + Colour wheel |
| | 28 | * Add ability to select number of breaks |
| | 29 | * options: Linear, Log, which can be manually adjusted |