Select to view content in your preferred language

When clicking a point graphics, popup does not open

2774
4
02-21-2016 05:42 PM
sw1
by
Deactivated User

I am trying ArcGIS JavaScript API 4.0 Beta 3.  The project is ASP.NET 5 / MVC 6.  Point graphics can be rendered.  But when clicking over a point, the popup does not open.

Thank you very much!

Tags (1)
0 Kudos
4 Replies
syangL
by
Deactivated User

It works! but might with a bug.Try to click at the bottom right of the point.

test.png

0 Kudos
sw1
by
Deactivated User

Thank you.  But no!  The sample provided by ESRI works.  But when plug that in a ASP.NET 5 / MVC project, it does not work.  It is not related to where you click.  I believe it is related to CSS comes with ASP.NET 5 / MVC 6.

Any one has the similar experience?


Thanks a lot.

0 Kudos
MichaelMatuszak
Deactivated User

Is your map flush with the top-left edge of your page?  If not, it seems there is a bug in 4.0beta3 where the click target is offset by whatever the margin is.

PopupTemplate click target offset if any margin

0 Kudos
sw1
by
Deactivated User

Thanks.  I think you are right.  This might be the case.

0 Kudos