Skip to content

Commit

Permalink
Fixes indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
simaob committed Feb 22, 2017
1 parent 337efd1 commit dc33a6b
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions app/assets/javascripts/editor/Models/MapOperations.js
Original file line number Diff line number Diff line change
Expand Up @@ -343,15 +343,15 @@
info_data.group_name = information.group || $('.group_combo .select2-chosen').text();
if (info_data.catalogue_id && occurrences[info_data.catalogue_id]===undefined) {

// If the point doesnt have info about _active and _removed
if (info_data.geocat_active===undefined || info_data.geocat_active===null) {
info_data.geocat_active = true;
}
if (info_data.geocat_removed===undefined || info_data.geocat_removed===null) info_data.geocat_removed = false;
// If the point doesnt have info about _active and _removed
if (info_data.geocat_active===undefined || info_data.geocat_active===null) {
info_data.geocat_active = true;
}
if (info_data.geocat_removed===undefined || info_data.geocat_removed===null) info_data.geocat_removed = false;

var geocat_query = info_data.geocat_query ? info_data.geocat_query.toLowerCase() : 'user';
var geocat_kind = info_data.geocat_kind ? info_data.geocat_kind.toLowerCase() : 'user';
var latlng = new google.maps.LatLng(parseFloat(info_data.latitude),parseFloat(info_data.longitude));
var geocat_query = info_data.geocat_query ? info_data.geocat_query.toLowerCase() : 'user';
var geocat_kind = info_data.geocat_kind ? info_data.geocat_kind.toLowerCase() : 'user';
var latlng = new google.maps.LatLng(parseFloat(info_data.latitude),parseFloat(info_data.longitude));

groups.sum(info_data, geocat_kind, geocat_query);

Expand All @@ -369,20 +369,20 @@
occurrences[marker_id].setActive(false);
}
} else {
if (info_data.geocat_active==undefined || info_data.geocat_active==null) info_data.geocat_active = true;
if (info_data.geocat_removed==undefined || info_data.geocat_removed==null) info_data.geocat_removed = false;
if (info_data.geocat_active==undefined || info_data.geocat_active==null) info_data.geocat_active = true;
if (info_data.geocat_removed==undefined || info_data.geocat_removed==null) info_data.geocat_removed = false;

var geocat_query = info_data.geocat_query ? info_data.geocat_query.toLowerCase() : 'user';
var geocat_kind = info_data.geocat_kind ? info_data.geocat_kind.toLowerCase() : 'user';
// var geocat_alias = info_data.geocat_alias;
var latlng = new google.maps.LatLng(parseFloat(info_data.latitude),parseFloat(info_data.longitude));
var geocat_query = info_data.geocat_query ? info_data.geocat_query.toLowerCase() : 'user';
var geocat_kind = info_data.geocat_kind ? info_data.geocat_kind.toLowerCase() : 'user';
// var geocat_alias = info_data.geocat_alias;
var latlng = new google.maps.LatLng(parseFloat(info_data.latitude),parseFloat(info_data.longitude));

// sources_collection.sumUp(geocat_query, geocat_kind, geocat_alias);
groups.sum(info_data, geocat_kind, geocat_query);
// sources_collection.sumUp(geocat_query, geocat_kind, geocat_alias);
groups.sum(info_data, geocat_kind, geocat_query);

bounds.extend(latlng);
global_id++;
info_data.catalogue_id = 'user_' + global_id;
bounds.extend(latlng);
global_id++;
info_data.catalogue_id = 'user_' + global_id;

var marker = new GeoCATMarker(latlng, geocat_kind, true, true, info_data, (info_data.geocat_removed)?null:map);
oms.addMarker(marker)
Expand Down

0 comments on commit dc33a6b

Please sign in to comment.