Browse files

tweak get data to return markers instead of clusters

  • Loading branch information...
1 parent 51cb19c commit d7a959864a486782fd526962049fc17aba545fc1 @andrewtrusty andrewtrusty committed Jun 1, 2013
Showing with 11 additions and 1 deletion.
  1. +11 −1 map.js
View
12 map.js
@@ -46,6 +46,15 @@ FruitDrop.prototype = {
$.ajax({
type: 'GET',
+ url: 'http://fallingfruit.org/locations/markers.json',
+ data: {
+ muni: 1,
+ nelat: bounds.getNorthEast().lat(),
+ nelng: bounds.getNorthEast().lng(),
+ swlat: bounds.getSouthWest().lat(),
+ swlng: bounds.getSouthWest().lng()
+ },
+ /* -- for clusters --
url: 'http://fallingfruit.org/locations/cluster.json',
data: {
method: 'grid',
@@ -55,7 +64,8 @@ FruitDrop.prototype = {
swlat: bounds.getSouthWest().lat(),
swlng: bounds.getSouthWest().lng()
},
- dataType: 'jsonp',
+ */
+ dataType: 'json',
success: $.proxy(this.addMarkers, this),
error: $.proxy(this.error, this)
});

0 comments on commit d7a9598

Please sign in to comment.