I run local columnist's articles on our site on a weekly-monthly basis, where a lot of the reviews include scrollable maps. With each new page, I typically run them through a Validator, which kicks up approx 15-25 errors (which is commonly due to iframes or flash elements - which I can live with). However, in the last week, I have noticed a visual change to Bing Embedded Maps. It was not until tonight, that I see the coding changes that are included with their "generated code" for embedded maps on your site. Now, the maps look the same as before, apart from the new look zoom/pan graphic overlay, however, the Validator now throws up around 50 errors, all based on the embed code that Bing now generates.
The funny thing is, the old embedded maps (previous articles) show the new look, but retain the old generated code ... so I am confused???
Has anyone else come across this? ... is there a workaround or better approach?
Many thanks for the example above coothead ... will have a good look into it when time permits.
The one thing I notice, is there a way of removing the frame and scroll bars with the Object route?
I heard that Object is not always the best alternative to iframes, but can't honestly remember the reason why? (browser compatibility perhaps?) ... and that Ajax includes was a better option to take?
It's just a nusiance that Bing have suddenly changed their "generated code" .. as that is the route of the problem I am facing right now.
Anyway, thanks again, will chip away at your code example and implement it into my columnist pages, where these elements are present.
I really appreciate you taking the time to play around with this, as I am well aware of the efforts involved.
You have given me a lot of food for thought and I will certainly be working with your suggestions, to improve how I present elements on the pages of my site. The last 6 months, I have been "converting myself" from the old table structure HTML, into the CSS approach, so although I am enjoying the converted method, I know I still have a lot of learning ahead.
If I need to generate a new map location, how can I achieve this with the code you provided? (replace co-ords with manual iframe parameters or is there a map generator I can use)
Okay, fiddled with the example text you kindly provided, so this is what I changed for a different location in the city:
var cp = new Microsoft.Maps.Location(49.886229,-119.491510);
zoom:14,
width:550,
height:400,
var ps = [{"description":"","location":{"latitude":49.886229,"longitude":-119.49151},"title":""}];
(replaced the 'red' tags with the co-ords generated by BING's Iframe code, so hope I am on the right tracks? (visually, it seems to work okay on my page and validates well)
All the best,
Cal
Last edited by Calman; 03-22-2013 at 06:03 AM.
Reason: Update on progress.
Bookmarks