IEEE.org     |     IEEE Xplore Digital Library     |     IEEE Standards     |     IEEE Spectrum     |     More Sites

Commit c2961dd5 authored by APalumbo97's avatar APalumbo97
Browse files

Fixed some spacing and this.

parent a1b73d38
...@@ -38,7 +38,6 @@ export default class GeoQuery extends LightningElement { ...@@ -38,7 +38,6 @@ export default class GeoQuery extends LightningElement {
* @param {CustomEvent} event * @param {CustomEvent} event
* @param {Map} event.details - Leaflet Map of the child component * @param {Map} event.details - Leaflet Map of the child component
*/ */
responseGather(asset) { responseGather(asset) {
this.assetsPromise = asset; this.assetsPromise = asset;
// When the promise is fulfilled handle it // When the promise is fulfilled handle it
...@@ -47,14 +46,13 @@ export default class GeoQuery extends LightningElement { ...@@ -47,14 +46,13 @@ export default class GeoQuery extends LightningElement {
console.log(response); console.log(response);
// Initialize the array if need be // Initialize the array if need be
if( this.myAssets === undefined){ if (this.myAssets === undefined) {
this.myAssets = []; this.myAssets = [];
} }
// Iterate over the assets and add them to the map // Iterate over the assets and add them to the map
let i; let i;
for(i = 0; i < response.length; i++) for (i = 0; i < response.length; i++) {
{
const a = response[i]; const a = response[i];
// Create the map marker. Add back the offset so markers appear where the user clicked. // Create the map marker. Add back the offset so markers appear where the user clicked.
...@@ -131,7 +129,7 @@ export default class GeoQuery extends LightningElement { ...@@ -131,7 +129,7 @@ export default class GeoQuery extends LightningElement {
// Send out the POST request // Send out the POST request
this.assetsPromise = utils.post(distanceURL.href); this.assetsPromise = utils.post(distanceURL.href);
responseGather(this.assetsPromise); this.responseGather(this.assetsPromise);
// // When the promise is fulfilled handle it // // When the promise is fulfilled handle it
// this.assetsPromise.then(response => { // this.assetsPromise.then(response => {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment