Permalink
Browse files

Update jhere.js to latest

  • Loading branch information...
1 parent f764b3b commit 568c1b10fe92e6c9d75ed4e6352a8172707938e9 @mmarcon committed Nov 14, 2013
Showing with 6 additions and 5 deletions.
  1. +6 −5 web/js/jhere.js
View
@@ -54,6 +54,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//&lt;/script&gt;</code></pre>
//
//`<script type="text/javascript" src="js/jhere.js"></script>`
+ //
//And you are done.
//
//Make sure the DOM element that will contain the map has the appropriate
@@ -506,7 +507,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
this.map.overlays.add(hm);
};
- //###Access the underlying JSLA framework
+ //###Access the underlying HERE JavaScript API framework
//`$('.selector').jHERE('originalMap', closure);`
//
//This is useful when advanced operations
@@ -517,8 +518,8 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//`closure` should look like this:
//<pre><code>function(map, here){
// //this is the DOM element
- // //map is the JSLA map object
- // //here is the whole JSLA API namespace
+ // //map is the HERE JavaScript API map object
+ // //here is the whole HERE JavaScript API namespace
//}</code></pre>
H.originalMap = function(closure) {
/*
@@ -667,7 +668,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
};
head = doc.getElementsByTagName('head')[0];
jsla = doc.createElement('script');
- jsla.src = 'http://api.maps.nokia.com/2.2.4/jsl.js';
+ jsla.src = 'http://js.api.here.com/se/2.5.3/jsl.js';
jsla.type = 'text/javascript';
jsla.charset = 'utf-8';
jsla.onreadystatechange = function(){
@@ -710,7 +711,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//<pre><code class="dark">$.jHERE.extend('myextension', function(param1, param2){
// //this is the plugin object
// //this.element is the DOM element
- // //this.map is the JSLA map
+ // //this.map is the HERE JavaScript API map
//});</code></pre>
//
//A good example of extension is the [routing extension](https://github.com/mmarcon/jhere/blob/master/src/extensions/route.js).

0 comments on commit 568c1b1

Please sign in to comment.