Displaying 3 results from an estimated 3 matches for "addapi".
Did you mean:
addapt
2010 May 21
0
r83 committed - Making the geocoder pass JSLint
...geocoder'');
}
-}
+};
/**
* Change the Routing API to use
* @param {String} api The API to swap to
@@ -76,17 +76,17 @@
if (this.api == api) { return; }
this.api = api;
- if (this.geocoders[this.api] == undefined) {
+ if (!this.geocoders.hasOwnProperty(this.api)) {
this.addAPI($(element),api);
}
-}
+};
/**
* Default Geocode error function
*/
MapstractionGeocoder.prototype.geocode_error = function(response) {
alert("Sorry, we were unable to geocode that address");
-}
+};
/**
* Default handler for geocode request completion
@@ -107,14 +107,...
2008 Mar 03
0
Routing through LatLng points and other stuff
...st example,
everything works fine, but when I use [42.426474, -83.492817] and
[42.279092, -83.764378], i get the "TypeError: this.location has no
properties"
* I''m not really sure it is Mapstraction error, but here it is, so if anyone
can help....
2) MapstractionRouter.prototype.addAPI = function(api)
* one has to manually set " ProxyServerPath " to something appropriate to
the proxy solution used (the one in the example is for PHP and I work with
Rails)
* anyway, it would be nice to overload that parameter in the API itself (so
one does not need to change the code of t...
2009 Feb 09
15
Mapstraction v2 architecture demo - work in progress
Hi guys,
Been working on this over the past few evenings and, although it''s not
actually working yet, I thought I''d give you a first glance.
The core mapstraction stuff is about 1800 lines with the Google
implementation code adding another 500. Original mapstraction is 5353 lines
so we''re looking at 5800 for this version if you were to include all
provider