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

0
0

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
0
0

Hi Winston,

I’ve attached a sample demonstrating the Polygon from the link Luca provided: https://developers.google.com/maps/documentation/javascript/examples/polygon-simple, as you requested.

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

Best regards,

Levie

  • 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
0
0

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

 

https://developers.google.com/maps/documentation/javascript/examples/polygon-simple

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

this.googleMaps.Eval(@"
    var bermudaTriangle = new google.maps.Polygon({
          paths: triangleCoords,
          strokeColor: '#FF0000',
          strokeOpacity: 0.8,
          strokeWeight: 2,
          fillColor: '#FF0000',
          fillOpacity: 0.35
        });
        bermudaTriangle.setMap(this.map);
");


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.