| 
						
						
							
								
							
						
						
					 | 
					@ -459,18 +459,7 @@ export default class DiscoverView extends Vue { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        this.userProfiles = []; | 
					 | 
					 | 
					        this.userProfiles = []; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        const plans: PlanData[] = results.data; | 
					 | 
					 | 
					        const plans: PlanData[] = results.data; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        if (plans) { | 
					 | 
					 | 
					        if (plans) { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					          for (const plan of plans) { | 
					 | 
					 | 
					          this.projects.push(...plans); | 
				
			
			
				
				
			
		
	
		
		
			
				
					 | 
					 | 
					            const { name, description, handleId, image, issuerDid, rowId } = | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					              plan; | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            this.projects.push({ | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					              name, | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					              description, | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					              handleId, | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					              image, | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					              issuerDid, | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					              rowId, | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            }); | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					          } | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					          this.remoteCount = this.projects.length; | 
					 | 
					 | 
					          this.remoteCount = this.projects.length; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        } else { | 
					 | 
					 | 
					        } else { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					          throw JSON.stringify(results); | 
					 | 
					 | 
					          throw JSON.stringify(results); | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
					@ -562,22 +551,9 @@ export default class DiscoverView extends Vue { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					      if (this.isProjectsActive) { | 
					 | 
					 | 
					      if (this.isProjectsActive) { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        this.userProfiles = []; | 
					 | 
					 | 
					        this.userProfiles = []; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        if (results.data) { | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					          if (beforeId) { | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        const plans: PlanData[] = results.data; | 
					 | 
					 | 
					        const plans: PlanData[] = results.data; | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					            for (const plan of plans) { | 
					 | 
					 | 
					        if (plans) { | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					              const { name, description, handleId, issuerDid, rowId } = plan; | 
					 | 
					 | 
					          this.projects.push(...plans); | 
				
			
			
				
				
			
		
	
		
		
			
				
					 | 
					 | 
					              this.projects.push({ | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                name, | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                description, | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                handleId, | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                issuerDid, | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                rowId, | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					              }); | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            } | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					          } else { | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            this.projects = results.data; | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					          } | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					          this.localCount = this.projects.length; | 
					 | 
					 | 
					          this.localCount = this.projects.length; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        } else { | 
					 | 
					 | 
					        } else { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					          throw JSON.stringify(results); | 
					 | 
					 | 
					          throw JSON.stringify(results); | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
					@ -626,7 +602,7 @@ export default class DiscoverView extends Vue { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        } else if (this.isAnywhereActive) { | 
					 | 
					 | 
					        } else if (this.isAnywhereActive) { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					          this.searchAll(latestProject.rowId); | 
					 | 
					 | 
					          this.searchAll(latestProject.rowId); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        } | 
					 | 
					 | 
					        } | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					      } else if (!this.isProjectsActive && this.userProfiles.length > 0) { | 
					 | 
					 | 
					      } else if (this.isPeopleActive && this.userProfiles.length > 0) { | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					        const latestProfile = this.userProfiles[this.userProfiles.length - 1]; | 
					 | 
					 | 
					        const latestProfile = this.userProfiles[this.userProfiles.length - 1]; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        if (this.isLocalActive || this.isMappedActive) { | 
					 | 
					 | 
					        if (this.isLocalActive || this.isMappedActive) { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					          this.searchLocal(latestProfile.rowId || ""); | 
					 | 
					 | 
					          this.searchLocal(latestProfile.rowId || ""); | 
				
			
			
		
	
	
		
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
					@ -637,6 +613,11 @@ export default class DiscoverView extends Vue { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    } | 
					 | 
					 | 
					    } | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					  } | 
					 | 
					 | 
					  } | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					  clearMarkers() { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					    Object.values(this.markers).forEach((marker) => marker.remove()); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					    this.markers = {}; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					  } | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					  async onMapReady(map: L.Map) { | 
					 | 
					 | 
					  async onMapReady(map: L.Map) { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    // doing this here instead of the l-map element avoids a recentering after the first drag | 
					 | 
					 | 
					    // doing this here instead of the l-map element avoids a recentering after the first drag | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    map.setView([this.localCenterLat, this.localCenterLong], 2); | 
					 | 
					 | 
					    map.setView([this.localCenterLat, this.localCenterLong], 2); | 
				
			
			
		
	
	
		
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
					@ -662,8 +643,7 @@ export default class DiscoverView extends Vue { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					  onZoomStart(/* event: L.LocationEvent */) { | 
					 | 
					 | 
					  onZoomStart(/* event: L.LocationEvent */) { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    // remove markers because otherwise they jump around at zoom end | 
					 | 
					 | 
					    // remove markers because otherwise they jump around at zoom end | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					    Object.values(this.markers).forEach((marker) => marker.remove()); | 
					 | 
					 | 
					    this.clearMarkers(); | 
				
			
			
				
				
			
		
	
		
		
			
				
					 | 
					 | 
					    this.markers = {}; | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    this.zoomedSoDoNotMove = true; | 
					 | 
					 | 
					    this.zoomedSoDoNotMove = true; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					  } | 
					 | 
					 | 
					  } | 
				
			
			
		
	
	
		
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
					@ -686,8 +666,7 @@ export default class DiscoverView extends Vue { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        : this.partnerApiServer + "/api/partner/userProfileCountsByBBox"; | 
					 | 
					 | 
					        : this.partnerApiServer + "/api/partner/userProfileCountsByBBox"; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					      const response = await fetch(endpoint + "?" + queryParams); | 
					 | 
					 | 
					      const response = await fetch(endpoint + "?" + queryParams); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					      if (response.status === 200) { | 
					 | 
					 | 
					      if (response.status === 200) { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					        Object.values(this.markers).forEach((marker) => marker.remove()); | 
					 | 
					 | 
					        this.clearMarkers(); | 
				
			
			
				
				
			
		
	
		
		
			
				
					 | 
					 | 
					        this.markers = {}; | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					        const results = await response.json(); | 
					 | 
					 | 
					        const results = await response.json(); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        if (results.data?.tiles?.length > 0) { | 
					 | 
					 | 
					        if (results.data?.tiles?.length > 0) { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					          for (const tile: Tile of results.data.tiles) { | 
					 | 
					 | 
					          for (const tile: Tile of results.data.tiles) { | 
				
			
			
		
	
	
		
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
					@ -711,10 +690,22 @@ export default class DiscoverView extends Vue { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					              }; | 
					 | 
					 | 
					              }; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					              this.searchLocal(); | 
					 | 
					 | 
					              this.searchLocal(); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            }); | 
					 | 
					 | 
					            }); | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					            this.markers["" + tile.indexLat + "X" + tile.indexLon] = marker; | 
					 | 
					 | 
					            this.markers[ | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					              "" + | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					                tile.indexLat + | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					                "X" + | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					                tile.indexLon + | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					                "_" + | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					                tile.minFoundLat + | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					                "X" + | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					                tile.minFoundLon + | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					                "-" + | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					                tile.maxFoundLat + | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					                "X" + | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					                tile.maxFoundLon | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					            ] = marker; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					          } | 
					 | 
					 | 
					          } | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        } | 
					 | 
					 | 
					        } | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        await this.searchLocal(); | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					      } else { | 
					 | 
					 | 
					      } else { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        throw { | 
					 | 
					 | 
					        throw { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					          message: "Got an error loading projects on the map.", | 
					 | 
					 | 
					          message: "Got an error loading projects on the map.", | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
					
  |