This is problematic: http://msdn.microsoft.com/en-us/library/ee692181.aspx Bing doesn''t let you pass in a key on the URL like Google does. Any suggestions how to do this with Mapstraction? What makes this tricky is that the key needs to be available in the mxn.microsoft.core.js file before this.maps[api].LoadMap() is called, meaning Options won''t work. I can only think of a couple of ways to solve this. 1. Change mxn.microsoft.core.js to look for a variable in scope (see example below). if(mapkey) { this.maps[api]. SetCredentials(mapkey); } this.maps[api].LoadMap(); 2. Change the constructor, but that would break encapsulation. var Mapstraction = mxn.Mapstraction = function(element, api, debug, key) Thoughts? For the moment, I''m going with option 1 as show below. <script type="text/javascript"> var mapkey = ''#{resourceBundleRetriever.bingApiKey}''; </script> <script src="http://ecn.dev.virtualearth.net/mapcontrol/mapcontrol.ashx?v=6.3" type="text/javascript"/> <script type="text/javascript" charset="utf-8" src="http://mapstraction.googlecode.com/svn/trunk/source/mxn.js?(microsoft)"></script> Any thoughts on another way to do this? Steve ________________________________ This e-mail and any attachments may contain confidential material for the sole use of the intended recipient. If you are not the intended recipient, please be aware that any disclosure, copying, distribution or use of this e-mail or any attachment is prohibited. If you have received this e-mail in error, please contact the sender and delete all copies. Thank you for your cooperation. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.mapstraction.com/pipermail/mapstraction-mapstraction.com/attachments/20100917/8e6c1b09/attachment.htm>