Skip to content

Commit

Permalink
Update maps api
Browse files Browse the repository at this point in the history
Load SWM locations from action API instead of a static file
  • Loading branch information
jkouvar committed Apr 26, 2018
1 parent fb09c25 commit 53bf232
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions api/map.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
const METERS = '/assets/data/meters.geojson';

var api = require('./base');

var MapsAPI = {
getMetersLocations : function() {
return api.json(METERS);
return api.json('/action/spatial/meters', null, 'GET');
},
getGroups: function() {
return api.json('/action/spatial/group', null, 'GET');
Expand Down

0 comments on commit 53bf232

Please sign in to comment.