nikhilk / scriptsharp

Script# Project - a C# to JavaScript compiler, to power your HTML5 and Node.js web development.
http://scriptsharp.com
Other
658 stars 182 forks source link

MapInfoBox and event handling #442

Closed larrywelch closed 7 years ago

larrywelch commented 7 years ago

I'd like to add an event handler to the MapInfoBox. It looks like I would do that through the MapInfoBoxOptions.Actions. However, the MapInfoBoxAction defines the EventHandler property as a string. Am I missing something? Is there another way to register for events?

larrywelch commented 7 years ago

I was able to determine what I was doing wrong. I know understand that I need to register for a MapPushPin events using MapEvents.AddHandler(pin, "click", mapPinClickEventHandler); And it's in that handler that I can display the MapInfoBox.

larrywelch commented 7 years ago

Having an issue with the event args but it's not related to the MapInfoBox so I'm going to close this issue and open a new one.