-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OnClickMap works on PointSymbol but not on PointIcon #55
Comments
Hello sir, I think you want to open a page, with url from pointAttributes. It must also work with the icon. But I have to pay attention that the icon is anchored in the upper left corner. To orient yourself, you can put an icon and a marker. |
I'm using version 2.2.2.2 and I have narrowed the issue to setting the appearance of a streampoint to a pointsymbol or pointicon along with the pointtooltip in both cases. When I have a pointsymbol, putting the mouse over the marker, changes the cursor to the pointing hand and the tooltip appears. By changing the appearance to pointicon, visually the marker shows the tooltip and the cursor changes to the pointing hand, but clicking on it doesn't fire the event. |
In this case I have to check! I understand that the event is not fired on the PointIcon.... |
We might need a click event for the pointicon instead of using the onclickmap event |
Taking the chance that you will be looking at this, please notice that the click map event returns a list that may have more than one item. |
Hello again, OnClickMap event return ClicksMapArgs (only location). About which itmes do you say that there are more? |
I'm mentioning the code that I implemented on the onclickmap method (see on the first comment - foundpoints list) It happens when multiple markers are placed in the same coordinates. |
I understood! You need to change the radius/distance (<=10). There is a query. |
Getting back to the initial request... I have set a tooltip using the predicate (p => true), which sets it for every marker. While doing more tests where I used the zoom to decide which would be the appearance, I experimented switching between a default and a simplified version using pointsymbols in both cases. In this scenario the tooltip is always present when the mouse moves hover the marker. When I decided to use the pointicon most of the time and switch to pointsymbol only when the zoom was higher, in order to have the possibility of clicking on it, I experienced something that can also be assigned to the use of the pointicon. The tooltip ceases to appear when there's a change in the appearance and no longer appears unless I refresh the page. |
Can you replicate what I described or do you need more details? |
Hi Laurentiu Ichim, in order to fix this, please add the option bubblingMouseEvents set to true when adding the marker for PointIcon ... |
OnClickMap works on PointSymbol but not on PointIcon !!!
While representing makers on the map with the PointSymbol, the click works well.
After replacing PointSymbol with the PointIcon, clicking on the marker no longer works.
The OnClickMap event is only fired when clicking anywhere besides the markers.
OnClickMap method:
The text was updated successfully, but these errors were encountered: