Skip to content

Commit

Permalink
new release 0.0.13
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Gerber committed Sep 25, 2014
1 parent 8488ac8 commit 0fe38c7
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 29 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "r360",
"version": "0.0.12",
"version": "0.0.13",
"authors": [
"[email protected]",
"[email protected]"
Expand Down
18 changes: 9 additions & 9 deletions dist/r360-src.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Route360° JavaScript API v0.0.9 (4f9ae63), a JS library for leaflet maps. http://route360.net
Route360° JavaScript API v0.0.9 (8488ac8), a JS library for leaflet maps. http://route360.net
(c) 2014 Henning Hollburg and Daniel Gerber, (c) 2014 Motion Intelligence GmbH
*/
(function (window, document, undefined) {
Expand Down Expand Up @@ -119,7 +119,7 @@ r360.config = {

defaultPlaceAutoCompleteOptions : {
serviceUrl : "http://geocode.route360.net/solr/select?",
serviceUrl : "http://148.251.160.52/api?",
// serviceUrl : "http://148.251.160.52/api?",
position : 'topleft',
reset : false,
reverse : false,
Expand All @@ -142,7 +142,7 @@ r360.config = {
backgroundOpacity : 0.5,
inverse : false,

animate : true,
animate : false,
animationDuration : 1
},

Expand Down Expand Up @@ -542,8 +542,8 @@ r360.TravelOptions = function(){
// validate each source
_.each(this.getSources(), function(source){

if ( !_.has(source, 'lat') ) this.getErrors().push('Sources contains source with undefined latitude!');
if ( !_.has(source, 'lon') ) this.getErrors().push('Sources contains source with undefined longitude!');
if ( !_.has(source, 'lat') && typeof source.getLatLng !== 'function' ) this.getErrors().push('Sources contains source with undefined latitude!');
if ( !_.has(source, 'lon') && typeof source.getLatLng !== 'function' ) this.getErrors().push('Sources contains source with undefined longitude!');
});
}
}
Expand Down Expand Up @@ -618,8 +618,8 @@ r360.TravelOptions = function(){
// validate each source
_.each(this.getTargets(), function(target){

if ( !_.has(target, 'lat') ) this.getErrors().push('Targets contains target with undefined latitude!');
if ( !_.has(target, 'lon') ) this.getErrors().push('Targets contains target with undefined longitude!');
if ( !_.has(target, 'lat') && typeof target.getLatLng !== 'function' ) this.getErrors().push('Targets contains target with undefined latitude!');
if ( !_.has(target, 'lon') && typeof target.getLatLng !== 'function' ) this.getErrors().push('Targets contains target with undefined longitude!');
});
}
}
Expand Down Expand Up @@ -3252,7 +3252,7 @@ r360.Route360PolygonLayer = L.Class.extend({
return true;

var val = (p1.x * (p2.y -p3.y) + p2.x * (p3.y - p1.y) + p3.x * (p1.y - p2.y));
if(val < 1 && val > -1)
if(val < 1 && val > -1 && p1.x != p3.x && p1.y != p3.y)
return true;
return false;
},
Expand Down Expand Up @@ -3576,7 +3576,7 @@ r360.Route360PolygonLayer = L.Class.extend({
var svgStart = "<div id=svg_"+ $(this._map._container).attr("id") + " style='" + that._getTranslation() + ";''><svg" +
" height=" + that._svgHeight +
" width=" + that._svgWidth +
" style='fill:" + r360.config.defaultPolygonLayerOptions.backgroundColor + " ; opacity: "+ r360.config.defaultPolygonLayerOptions.backgroundOpacity + "; stroke-linejoin:round; stroke-linecap:round; fill-rule: evenodd' xmlns='http://www.w3.org/2000/svg'>"
" style='fill:" + r360.config.defaultPolygonLayerOptions.backgroundColor + " ; opacity: "+ r360.config.defaultPolygonLayerOptions.opacity + "; stroke-linejoin:round; stroke-linecap:round; fill-rule: evenodd' xmlns='http://www.w3.org/2000/svg'>"
var svgEnd = "</svg></div>";

var gees = "";
Expand Down
6 changes: 3 additions & 3 deletions dist/r360.js

Large diffs are not rendered by default.

16 changes: 0 additions & 16 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -775,20 +775,6 @@ <h3>Displaying html content on the map</h3> \

r360.config.serviceUrl = "http://localhost:8080/api/"

jQuery.validator.addMethod("newEmail", function(value, element) {

console.log("TEST");

$.get(r360.config.serviceUrl + r360.config.serviceVersion + '/apiKey/check?key=' + r360.config.serviceKey, { email : value }, function(){

})
.done(function( data ) {
alert( "Data Loaded: " + data );
});;

return false;
}, "This email address is already registered.");

$("#create-user-form").validate({
rules: {
firstname: {
Expand All @@ -811,11 +797,9 @@ <h3>Displaying html content on the map</h3> \
}
},
region: {
minlength: 10,
required: true
},
description: {
minlength: 10,
required: true
}
},
Expand Down

0 comments on commit 0fe38c7

Please sign in to comment.