Permalink
Browse files

Changed the ajax call to the nearest neighbor service to the Openshif…

…t PaaS version
  • Loading branch information...
1 parent f58c484 commit 559186fcb965ca8b6ae3b306650e3c0bb967d934 @TankofVines committed Sep 4, 2012
Showing with 10 additions and 1 deletion.
  1. +10 −1 js/ppa.js
View
@@ -2,12 +2,21 @@ var map;
var coords = [];
var proj = L.Projection.Mercator;
+
+
function initMap() {
+
// New leaflet Map
map = new L.Map('map', {
doubleClickZoom: false
});
+ // var southWest = new L.LatLng(27.821, -82.617);
+ // var northEast = new L.LatLng(27.861, -82.583);
+//
+ // var bounds = new L.LatLngBounds(southWest, northEast);
+ // map.setMaxBounds(bounds);
+
// Initial location
var intialPoint = new L.LatLng(27.841845, -82.598578);
@@ -74,7 +83,7 @@ function initMap() {
});
$.ajax({
- url: 'http://23.21.65.194:3000/nndist',
+ url: 'http://nodeppa-kas673.rhcloud.com/nndist',
cache: false,
data: {
coordinates: JSON.stringify(coords)

0 comments on commit 559186f

Please sign in to comment.