How would you add a polygons or polylines to Google Maps control through Wisej?


i have a problem in adding the path coordinate in wisej.
this.googleMap1.Call(“myline”, new

path = new { lat = ?, lng = ? },—–> this is my problem?
geodesic = true,
strokeColor = “#FF0000”,
strokeOpacity = 1.0,
strokeWeight = 2,


var flightPlanCoordinates = [
{ lat: 37.772, lng: -122.214 },
{ lat: 21.291, lng: -157.821 },
{ lat: -18.142, lng: 178.431 },
{ lat: -27.467, lng: 153.027 }

thank you for any help…


  • You must to post comments

Hi Winston,

I’ve attached a sample demonstrating the Polygon from the link Luca provided:, as you requested.

Please let me know if you have any questions about it!

Best regards,


  • winston mequila
    Hi Levie, thank you very much for the response to my request for a sample polygon. It is a big help and I appreciated it very much.
  • You must to post comments

googleMap1 is not to google map object.  See other answer to the same question, or see example below.

The map object in the extension is “”. The javascript is  the same shown on the google page. You can either write javascript code or in C# use:

    var bermudaTriangle = new google.maps.Polygon({
          paths: triangleCoords,
          strokeColor: '#FF0000',
          strokeOpacity: 0.8,
          strokeWeight: 2,
          fillColor: '#FF0000',
          fillOpacity: 0.35

Or send a small sample project showing what you need to do.

  • Levie (ITG)
    Hi Winston, did this solve your issue? Best, Levie
  • winston mequila
    Hi Levie, first thank you for your help. for now I’m trying to understand the link that you give to me.. but may i ask some sample or code to create a path in google maps.
  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.