Skip to content

Commit 53bf232

Browse files
committed
Update maps api
Load SWM locations from action API instead of a static file
1 parent fb09c25 commit 53bf232

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

api/map.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
1-
const METERS = '/assets/data/meters.geojson';
2-
31
var api = require('./base');
42

53
var MapsAPI = {
64
getMetersLocations : function() {
7-
return api.json(METERS);
5+
return api.json('/action/spatial/meters', null, 'GET');
86
},
97
getGroups: function() {
108
return api.json('/action/spatial/group', null, 'GET');

0 commit comments

Comments
 (0)