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…
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
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.
Please login first to submit.