nickcam / FlareClusterLayer

ArcGIS javascript custom graphics layer. Create clusters...with flares.
https://flareclusterlayer.azurewebsites.net/index_v4.html
MIT License
134 stars 51 forks source link

On mouse over flares does not showing up at all. #43

Closed pyalam closed 5 years ago

pyalam commented 5 years ago

HI Nicak, Im mouse overing on the clustergroup but the flare tool tips are not showing up.Could you please look into my code .Am i missing any property?.Please look into my code below.

/ Copyright 2018 Esri Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. /

import { Component, OnInit, ViewChild, ElementRef, Input, Output, EventEmitter, HostListener } from '@angular/core'; import { loadModules } from 'esri-loader'; import esri = __esri; import { Urls } from '@enums/urls.enum'; import { BrandNames, BrandColors } from '@enums/brand.enum'; import { AppSettingsService } from '@services/app-settings/app-settings.service'; import { UserService } from '@services/user/user.service'; import { trigger, state, style, transition, animate } from '@angular/animations'; import { Router } from '@angular/router'; import { FleetDataService } from '@fleet/services/fleet-data.service'; import { DatePipe } from '@angular/common'; import { ApiService } from '@services/api/api.service'; import { ToolbarToggleFilterbarService } from '@fleet/services/events/toolbar-toggle-filterbar.service'; import { TranslateService } from '@ngx-translate/core'; import { FleetFilterDataStoreService } from '@fleet/services/fleet-filter-data-store/fleet-filter-data-store.service'; import { Location } from '@angular/common'; import { markParentViewsForCheck } from '@angular/core/src/view/util'; import { Popup } from 'auth0-js'; import { PerfectScrollbarComponent } from 'ngx-perfect-scrollbar'; import { FleetService } from '../../services/fleet.service'; import { SelectedVehicleService } from '@fleet/services/events/selected-vehicle.service'; import { UtilService } from '@services/util/util.service'; import { NavmapService } from '@fleet/services/navmap.service'; import { FaultsFilterDataService } from '@fleet/services/fleet-faults-filter/faults-filter-data.service';

@Component({ selector: 'app-fleet-map', templateUrl: './fleet-map.component.html', styleUrls: ['./fleet-map.component.css'], animations: [ trigger('collapseVehicles', [ state( 'collapsed', style({ height: '0', minHeight: '0', display: 'none', overflow: 'hidden' }) ), state('expanded', style({ height: '*' })), transition('expanded <=> collapsed', animate('350ms cubic-bezier(0.4, 0.0, 0.2, 1)')) ]) ] }) export class FleetMapComponent implements OnInit { imageUrl: any; map: esri.Map; // private mapView: esri.MapView; mapViewProperties: esri.MapViewProperties;

filtersBarOpen: boolean; _refData: any; @ViewChild('mapViewNode') public mapViewEl: ElementRef;

/**

nickcam commented 5 years ago

Hey man, sorry I can't really help with that code block.

You should also be wrapping your code in comments using markdown, put the code blocks inside three backticks. Check out the markdown guide. You can also specify the language of the code, which will make it even easier to read. https://guides.github.com/features/mastering-markdown/

From a quick glance it seems you've set the right property, singleFlareTooltipProperty, but I can't go through that wall of code completely.

If you can create a cut down demo of the problem using an online editor I could take a look at that. Stackblitz - https://stackblitz.com/ - has good support for angular apps to demo features or problems.

pyalam commented 5 years ago

fleet-map.zip Nick, I cant able to add the sri loader package in stackblitz.thats why I have uploaded my component.ts folder here.Could you please look into. flares are showing up .BUT they are not showing up on the mouse over of cluster region They are showing up when I mouse over on outside region of map .See my mouse pointer it is some where out of map .Please help me.Thanks. 20190218_204224

nickcam commented 5 years ago

Hi @pyalam, I don't have time to crack open your whole project, compile it, trouble shoot it and return it. If you're able to reproduce the same problem in an online editor of some type (stackblitz, jsfiddle, codepen, plunkr), I'm happy to take a look at that.