Hi all,
Is there any possible way to cover a area using BING MAP.
Go to this link.
https://www.movinghelp.com/coverage.aspx?id=5924
I need exactly what it looks like.
Any help will be appreciated. Thanks n advance.
Hi all,
Is there any possible way to cover a area using BING MAP.
Go to this link.
https://www.movinghelp.com/coverage.aspx?id=5924
I need exactly what it looks like.
Any help will be appreciated. Thanks n advance.
Looks like you create an instance of the Shapelayer class. Of course you need a Bing Maps API account and the SDK and I don't know if those are easy to get.
You need to use the Bing Maps SDK. You have to create an instance of the VEMap class centered in your interest area, and then create one or more instances of VEShape and add them to the map. The following code creates a shape covering the extent of India:
//Create map
map = new VEMap('myMap');
//Set center and zoom level
map.LoadMap(new VELatLong(22.268764039073965, 79.98046875),4);
//Create shape (area) with TL, TR, BR and BL coordinates
var shape = new VEShape(VEShapeType.Polygon,
[new VELatLong(32.84267363195431, 68.02734375),
new VELatLong(32.84267363195431,90.87890625),
new VELatLong(4.915832801313164,90.87890625),
new VELatLong(4.915832801313164,68.02734375)]);
//Format shape if needed
var fillColor = new VEColor(226, 224, 219,0.5);
shape.SetFillColor(fillColor);
//Add shape to map
map.AddShape(shape);
Check the examples shown here for further details