Skip to content

Commit

Permalink
Merge 7a85960 into c957f4d
Browse files Browse the repository at this point in the history
  • Loading branch information
ropable committed Aug 28, 2017
2 parents c957f4d + 7a85960 commit 2e87a12
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions prs2/referral/templates/referral/location_create.html
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,9 @@ <h1>{{ title }}</h1>

// Function to query Geoserver for the clicked-on location, return a feature and add it to locationsLayer.
var queryCadastre = function(latlng) {
if (latlng == null) {
return;
}
// Generate our CQL filter.
var filter = 'INTERSECTS(wkb_geometry, POINT ({0} {1}))'.replace('{0}', latlng.lat).replace('{1}', latlng.lng);
var parameters = L.Util.extend(cadastreWFSParams, {'cql_filter': filter});
Expand Down
4 changes: 2 additions & 2 deletions prs2/referral/templates/referral/referral_detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
{% if geojson_locations %}
<link rel="stylesheet" type="text/css" href="//api.mapbox.com/mapbox.js/v3.1.1/mapbox.css" />
<link rel="stylesheet" type="text/css" href="//api.mapbox.com/mapbox.js/plugins/leaflet-fullscreen/v1.0.1/leaflet.fullscreen.css" />
<link rel="stylesheet" type="text/css" href="{% static 'leaflet-search/leaflet-search.css' %}" />
<link rel="stylesheet" type="text/css" href="{% static 'css/leaflet-search.css' %}" />
{% endif %}
<link rel="stylesheet" type="text/css" href="//static.dbca.wa.gov.au/static/libs/dropzone/5.1.1/min/dropzone.min.css">
<link rel="stylesheet" type="text/css" href="{% static 'css/prs_dropzone.css' %}" />
Expand Down Expand Up @@ -171,7 +171,7 @@ <h4>Key issues:</h4>
{% if geojson_locations %}
<script src="//api.mapbox.com/mapbox.js/v3.1.1/mapbox.js"></script>
<script src="//api.mapbox.com/mapbox.js/plugins/leaflet-fullscreen/v1.0.1/Leaflet.fullscreen.min.js"></script>
<script src="{% static 'leaflet-search/leaflet-search.min.js' %}"></script>
<script src="{% static 'js/leaflet-search.min.js' %}"></script>
<script>
// Set global variables (needs to happen before loading referral_map.js)
var geoserver_wms_url = '{{ geoserver_wms_url }}';
Expand Down

0 comments on commit 2e87a12

Please sign in to comment.