| 84 | ==== Produce Custom Overlay ==== |
| 85 | |
| 86 | This would produce a custom overlay with either: |
| 87 | * polygons highlighted |
| 88 | * variable sized markers (image, circle, bar) |
| 89 | I'm not sure if this is the right way to do it. But this is the sort of functionality I'd want.[[BR]] |
| 90 | Infact, this function should be included with the API above, or I think that parts of the API above should be included with this. |
| 91 | {{{ |
| 92 | Args: |
| 93 | Locations - list of dicts - [{ location_id: ..., code_id: ..., value:...}, {}, ...] |
| 94 | code_id - used to lookup the marker/colour from the code_values list for this location_id. |
| 95 | value - used to define the size of the marker. |
| 96 | Type - Fill-Colour (for polygons only) / Marker / Circle / Bar Graph. |
| 97 | Code Values - list - either of marker images to use, or colour values. *Predefined code values could be included in the code. |
| 98 | popup_url = <default>, # The URL which will be used to fill the pop-up. it will be appended by the Location ID. |
| 99 | |
| 100 | }}} |