Wednesday, March 28, 2012
Virtual Earth and firefox
I have some fun with VirtualEarthMap control last night :) I was tryingto make it work in Firefox. The problem occured to be in DOCTYPEdeclaration,
after removing it maps displays well but we can't still change its sizein associated cssClass. After a moment of investigation I used#id_of_map_control instead of cssClass in css stylesheet - works well!
What I ve done is working but isn't elegant :) Maybe I am missing something?
Best regards,
Marcin Daczkowski
That's a bug in the map control. When you apply the class, you apply itto a container div. That container contains a div, in which the actualmap is placed. When the map is initialized, the control uses thewidth/height of this div as the width/height of the map. Your classobviously does not apply to this inner div, which means it will have adefault height/width.
Hello
Thanks for explaination. I was investigating source code and found thatdiv in div, too. But my knowledge of css implementations is not deep -I've found "hack" but was not sure if there is no better (proper)solution (after I have found nothing on google about this i was surethat I am doing sth wrong). Now everything is clear. Thanks!
Best wishes,
Marcin Daczkowski
Monday, March 26, 2012
virtualEarthMap
Hi!
Can anybody tell something about the magical disappear of AtlasUIMap.js andvirtualEarthMap control in version RC1? With older verisons of Atlas (int time of Microsoft.Web.Atlas.dll, april CTP maybe) it worked fine. But the RC1 unfortunately does not know anything about it :(. Does RC1 have any wrapper for Microsoft Virtual Earth, or in RC1 we only have pure VE SDK, and AJAX gives us no support for mapping?
Thx
Yes there is not support for Virtual earth in currently in ASP.NET Ajax. But the VE SDK is pretty good and well structured so you can use it wothout the need of a wrapper.VirtualEarchMap Control
Where can I find detailed documentation as to what the API is for the xml-script for the virtualEarthMap control.
I've looked at Jonathan Hawkins' Mashup example (http://blogs.msdn.com/jhawk/archive/2006/03/26/561658.aspx) and it is an excellent starting point but now I'm interested in doing more and I'm not sure what else is supported in the xml script.
Thanks
Hi,check the url in my signature, it's a mashup based on Virtual Earth.You can download the source code.
hello.
the class is defined on the atlasuimap.js file. if you look at the getDescriptor method, you'll get all the propertties, events and methods that can be used from xml-script.