English 中文(简体)
How to cover an area using bing map?
原标题:

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.

问题回答

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

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.





相关问题
Brute-force/DoS prevention in PHP [closed]

I am trying to write a script to prevent brute-force login attempts in a website I m building. The logic goes something like this: User sends login information. Check if username and password is ...

please can anyone check this while loop and if condition

<?php $con=mysql_connect("localhost","mts","mts"); if(!con) { die( unable to connect . mysql_error()); } mysql_select_db("mts",$con); /* date_default_timezone_set ("Asia/Calcutta"); $date = ...

定值美元

如何确认来自正确来源的数字。

Generating a drop down list of timezones with PHP

Most sites need some way to show the dates on the site in the users preferred timezone. Below are two lists that I found and then one method using the built in PHP DateTime class in PHP 5. I need ...

Text as watermarking in PHP

I want to create text as a watermark for an image. the water mark should have the following properties front: Impact color: white opacity: 31% Font style: regular, bold Bevel and Emboss size: 30 ...

How does php cast boolean variables?

How does php cast boolean variables? I was trying to save a boolean value to an array: $result["Users"]["is_login"] = true; but when I use debug the is_login value is blank. and when I do ...

热门标签