How to create an overlay on a Bing Map
Guides|by Justine Coates|11 March 2022
Are you interested in seeing a representation of your Area, Building or Venue on a map? Why not try an overlay? Here’s how to do it!
To begin, select the image of your area or venue you want to use. This image will need to have a URL. Once you are ready you can follow this example. As Microsoft is located in Seattle, I am going to overlay one of our local Sport’s teams Venues, Lumen Field, home of the Seattle Seahawks.
To do this, I first need to find a seating chart image to overlay already published with a URL. A Bing Search is just the thing! https://www.bing.com/search?q=Century+link+seating+chart
I can then use the public link for the image to create the overlay. Paste the following Sample Code in at the iSDK Simple GroundOverlay to get the Stadium seating chart overlaid on a Bing Map.
var map = new Microsoft.Maps.Map(document.getElementById('myMap'), { /* No need to set credentials if already passed in URL */ center: new Microsoft.Maps.Location(47.595, -122.3315), zoom: 17 }); var overlay = new Microsoft.Maps.GroundOverlay({ bounds: Microsoft.Maps.LocationRect.fromEdges(47.596356, -122.333221, 47.594003, -122.330027), imageUrl: 'https://seatingchartview.com/wp-content/uploads/2013/08/CenturyLink-Field-Football-Seating-Chart.gif', opacity: 0.4 }); map.layers.insert(overlay);
I did need to play with the rectangle to get it positioned just right. Now that I have found the right values, I can set the opacity between 0 and 1 to decide how much of the map behind the image should show through.
Let’s now try this with Wembley Stadium in London!
- Search for a venue map: https://www.bing.com/search?q=Wembley+Stadium+seating+chart and capture the centerpoint
- Find a nice public image file you like
- Go to the iSDK and choose Ground overlay
- Play with the various cornerpoints until you get...Tah dah!
var map = new Microsoft.Maps.Map(document.getElementById('myMap'), { /* No need to set credentials if already passed in URL */ center: new Microsoft.Maps.Location(51.555830, -0.279507), zoom: 16 }); var overlay = new Microsoft.Maps.GroundOverlay({ bounds: Microsoft.Maps.LocationRect.fromEdges(51.557650, -0.282312,51.554248, -0.276143), imageUrl: 'https://garfitgroup.com/wp-content/uploads/2019/10/Wembley-map-Bobby-Moore-1.jpg', opacity: 0.4 }); map.layers.insert(overlay);
If you literally want to take it to the next level, you can also try the Bing Maps Venue Map feature that allows you to add multiple floors! See Show floor switcher (bing.com) and Venue Maps Module - Bing Maps | Microsoft Docs.
To learn more about how you can use the Bing Maps V8 Interactive SDK to try new things, go to the Overview Page. Traverse the left navigation menu to explore more exciting samples you can try for use in your solutions.
To find out more about integrating Bing Maps into your website or mobile app, or Bing Maps licensing, contact our mapping team:
+44 (0)1364 655 133
Imagery source: SeatingCharts.com and GarfitGroup.com
Contact Grey Matter
If you have any questions or want some extra information, complete the form below and one of the team will be in touch ASAP. If you have a specific use case, please let us know and we'll help you find the right solution faster.
By submitting this form you are agreeing to our Privacy Policy and Website Terms of Use.
Justine Coates
Justine Coates is a Senior Program Manager at Microsoft in the Microsoft Maps and Geospatial team. Before coming to Microsoft, Justine worked in IoT, specializing in devices. Justine joined Microsoft in the Emerging Technologies group where she worked as a developer on the first versions of Windows for Automotive. Over the past three years Justine has been working with customers to bring the power of location to their solutions as Technical Evangelist for Microsoft Maps. Prior to that she was a Technical Evangelist for Windows IoT/Windows Embedded, Performance PM for Ford Sync and Developer Experience PM for Windows Embedded.
Justine has a degree in Software Engineering from the University of Victoria School of Engineering, where she specialized in programming languages and computer graphics.
Related News
Delphi 30 For 30 Webinars 2025
Tue 14 January 2025 - Fri 25 April 2025 6:00 pm - 7:00 pm GMT
Delphi’s celebrating its 30th anniversary this February. An incredible milestone. It’s come a long way since 1995. It’s kept up with the times, from working with AI to compiling apps for any platform out there from one elegant codebase. Celebrating...
Grey Matter Achieves Cyber Essentials and ISO 9001 Certifications
We are pleased to announce that we have achieved our Cyber Essentials and ISO 9001 certifications for another year. We want to do our due diligence as much as possible. And we can’t sell and promote the importance of cyber...
ACCU Conference 2025
1 - 4 April 2025 9:00 am - 4:00 pm GMT
We’re delighted to be a Gold Sponsor of the ACCU Conference 2025 in Bristol. It’s an event in the Southwest, so a little bit closer to home than usual for us. What is ACCU? The ACCU Conference, originally focused on...
Veeam Kasten v7.5: Revolutionising Kubernetes Backup and Recovery
Veeam has announced the release of Kasten v7.5, the latest version of its industry-leading Kubernetes backup and recovery solution. This new release brings significant advancements in scale, performance, security, and ecosystem coverage, empowering your organisation with brilliant resilience for your...