Feature layer hover

5458
12
06-13-2016 08:35 AM
BulbulMajumder1
New Contributor III

I visited "Feature layer hover" sample code. It is almost what I am looking for. Only the different what I would like "to hover on objects on the map, instead of area-boundary (as shown in this sample code)". Please help.

0 Kudos
12 Replies
AdrianWelsh
MVP Honored Contributor

Hi Bulbul,

It might help if you post the sample link you visited (likely this one: Feature layer hover | ArcGIS API for JavaScript ) and it might be best to post this thread in the ArcGIS API for JavaScript​ place. Community help is for help on the GeoNet.

In any case, have you looked at this code? Does this help?

Show info window on mouse hover | ArcGIS API for JavaScript

BulbulMajumder1
New Contributor III

Here is the Link
Feature layer hover | ArcGIS API for JavaScript

Please let me know if you need anything else
Thanks

0 Kudos
AdrianWelsh
MVP Honored Contributor

Thanks, looks like we're on the same page.

Have you looked at this sample code?

Show info window on mouse hover | ArcGIS API for JavaScript

0 Kudos
BulbulMajumder1
New Contributor III

Yes I did but in it you have to click but I just want hover and the geometry of the feature layer is point as this example Feature layer hover | ArcGIS API for JavaScript 
here they are using polygon geometry from feature layer and I want point geometry from the feature layer.
Thanks

0 Kudos
AdrianWelsh
MVP Honored Contributor

Bulbul,

I am not fully sure since I do not know enough about JavaScript. Maybe take a look at these two threads. They may be able to help you:

Popup on hover not working properly

Feature layer hover problem 

0 Kudos
DavidChrest
Occasional Contributor II

I used this same example to hover over a point feature layer.

Just use the name of your Feature Layer.

Instead of southCarolinaCounties.on("mouse-over", function(evt){...

Just do yourPointFeatureLayer.on("mouse-over", function(evt){...

BulbulMajumder1
New Contributor III

Thanks David but Its still not working do you mind to have a look in my code thanks

0 Kudos
BlakeTerhune
MVP Regular Contributor
0 Kudos
AdrianWelsh
MVP Honored Contributor

Bulbul,

You can post your code in this thread. It helps if you use the code block like Blake pointed out. (you can also attach a file to this thread but it may be more visual for people to see the code posted as opposed to attached).

0 Kudos