Skip to content

Latest commit

 

History

History
22 lines (18 loc) · 893 Bytes

README.md

File metadata and controls

22 lines (18 loc) · 893 Bytes

BingMap for jQuery

A jQuery plugin embedding Bing Maps (API version 7) into your website

Getting Started

  • Include the script from Bing
  • Include jQuery and the plugin on a page.
  • Create an API Key to use the Bing API Bing Maps Portal

Then select a div and call the bingmap method, and add your API key

<div id="map"></div>
<script charset="UTF-8" type="text/javascript" src="https://ecn.dev.virtualearth.net/mapcontrol/mapcontrol.ashx?v=7.0"></script>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<script type="text/javascript" src="javascript/bingmap.min.js"></script>
<script>
	$('#map').bingmap({api: credentials});
</script>

For more information and options, check the documentation.