Lazy Loading the Virtual Earth MapControl

Johannes Kebeck's Blog
04-09-2008, 01:50 PM
Although I think the performance of the Virtual Earth MapControl is pretty good there may be cases when you want the web site without the map first and then load the map if and when needed. In these cases you can avoid the overhead of the Virtual Earth MapControl for the initial loading and inject it only when needed. Some call this process of injecting the JavaScript after the document body has been loaded also 'lazy loading'.


Click here to see how it's done (http://JohannesKebeck.spaces.live.com/Blog/cns!42E1F70205EC8A96!3842.entry)


Technorati Tags: Virtual Earth (http://technorati.com/tags/Virtual Earth)
http://c.services.spaces.live.com/CollectionWebService/c.gif?cid=4819404664324524694&page=RSS%3a+Lazy+Loading+the+Virtual+Earth+MapCont rol&referrer=http://c.live.com/c.gif?NC=31263&NA=1149&PI=73329&RF=&DI=3919&PS=85545&TP=johanneskebeck.spaces.live.com&GT1=JohannesKebeck

Click here to view the article. (http://JohannesKebeck.spaces.live.com/Blog/cns!42E1F70205EC8A96!3842.entry)

John.Sewell
04-10-2008, 03:36 PM
Please note the script above contains many errors! Follow the link at the bottom to find a working script.

Eric Frost
04-11-2008, 05:19 AM
Maybe it was a formatting issue? I deleted the code from there and put a more prominent link to the original post. It is here:

Hannes's Virtual Earth Blog: Lazy Loading the Virtual Earth MapControl (http://johanneskebeck.spaces.live.com/Blog/cns!42E1F70205EC8A96!3842.entry)

 
Web mp2kmag.com
mapforums.com