Wijmaps provides you the ability to use geographical information from Bing Maps™. Before using this service, you should check the licensing requirements associated with it. These licensing terms can be found at:
http://www.microsoft.com/maps/product/terms.html
The map surfaces provided by the wijmaps widget (VirtualEarthRoadSurface, VirtualEarthAerialSurface, VirtualEarthHybridSurface) use the Bing Maps API. Usage of these online tile sources is not free for commercial use. You can learn more about using Bing Maps from the Microsoft documentation below.
http://msdn.microsoft.com/en-us/library/dd877180.aspx
Using a Bing Maps Key in your code is the recommended method of authenticating your Bing Maps application using Wijmaps. Bing Maps Keys do not expire, and a service request is not required to obtain a key. Therefore, it is very easy to authenticate your application using a Bing Maps Key and the wijmaps widget.
If you plan to use the built-in tile sources that are supported by the wijmaps widget, you first need to get a Bing Maps Key. You can go to the Bing Maps Account Center to create an account and get a key.
http://www.bingmapsportal.com/
For more information on obtaining a key, visit the Microsoft documentation below.
http://msdn.microsoft.com/en-us/library/ff428642.aspx
Once you have a key, you can authenticate usage of any of the provided Bing Maps tile sources (VirtualEarthRoadSurface, VirtualEarthAerialSurface, VirtualEarthHybridSurface) by passing your key into the script. For example:
Script |
Copy Code |
---|---|
$(document).ready(function () { $("#maps").wijmaps({ center: { x: 121.4, y: 31.2 }, zoom: 2, source: "bingMapsRoadSource", bingMapsKey: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" }); }); |