Angular service
PopupService source
Description
Map popup generation
Methods
-
click
-
Open a popup on the map with information about a coordinate.
-
getAreaIntersects (pid, latlng) -> HttpPromise
-
Test if an area intersects with a coordinate
Example
Input: - pid 67620 - latlng {lat:-22, lng:131} Output: { "name_id": 0, "pid": "67620", "id": "Northern Territory", "fieldname": "Australian States and Territories", "featureType": "MULTIPOLYGON", "area_km": 1395847.4575625565, "description": "null", "bbox": "POLYGON((128.999222 -26.002015,128.999222 -10.902499,137.996094 -10.902499,137.996094 -26.002015,128.999222 -26.002015))", "fid": "cl22", "wmsurl": "https://spatial.ala.org.au/geoserver/wms?service=WMS&version=1.1.0&request=GetMap&layers=ALA:Objects&format=image/png&viewparams=s:67620", "name": "Northern Territory" }Parameters
Name Type Description pid list area id
latlng latlng coordinate to inspect as {lat:latitude, lng:longitude}
Returns
Type Description HttpPromise