Google Maps Extension - OnMarkerClick event

Welcome to Wisej Support.
Questions, suggestions and plain old bugs - are all welcome here!
Answered
0
0

Hi Guys,

I’m busy testing the Google Maps Extension and I must say you did an awesome job. I like the dynamic options 🙂

If I place the Google Maps extension control in a window or if I open a file in the designer that contains a Google Maps extension then I get an unhandled exception (picture). I just click cancel and everything works fine and the map is displayed in the designer.

=> It would be nice to have an OnMarkerClick() event that returns the marker ID to e.g. then use the  ShowInfoWindow() to display details of the location.

=> Are there any plans to extend the functionality to include drawing elements (polygon, poly-lines, …)?

Best Regards
Rudy

Attachment
  • You must to post comments
Best Answer
0
0

Forgot to add a cool thing, you can use https://snazzymaps.com/  copy and paste the style definition in the options editor using “styles”: […] and you can get any of the styles working very easily.

  • Rudy
    • Rudy
    • Jan 18, 2017 - 9:08 pm
    Yep, that’s cool :)
  • You must to post comments
0
0

The event is MapClick and MapDoubleClick. When clicking on a marker the args.Marker property will have the marker ID.

You can add the polygon drawing to the source code published here http://wisej.com/extensions. It’s quite easy to add a function in startup.js and the mapping in C#. See CenterMap() and AddMarker() as examples. Let me know if you add functionality to the extension and we can publish your additions.

I will also add some polygon examples in the next few days.

Best,

Luca

  • You must to post comments
Showing 2 results
Your Answer
Post as a guest by filling out the fields below or if you already have an account.
Name*
E-mail*
Attachment
File Name Size
There are currently no files uploaded.
Maximum number of files 5, maximum file size 3.9MB.
Supported file formats: zip pdf gif jpg bmp png cs vb theme json