Upgrading from V3 to V5
I've let my map slide for a year or so and I want to get back into it.
So I changed the v3 to v5 in the mapcontrol.js include file. This now causes me to get a:
'view.zoomLevel' is null or not an object error when I pan or zoom.
Any thoughts? And any ideas where else it might break my map?
Thanks in advance.
http://interneticsonline.com/helmsman.html
[467 byte] By [
dsueck] at [2008-1-7]
Yeah your going to find that much has changed within the events and pins (now shapes). The changes are for the better but it maybe a good oppotunity to write your code again. I highly recommend looking at at an object orientated javascript approach.
http://www.asp.net/ajax/documentation/live/tutorials/EnhancingJavaScriptTutorial.aspx
I am working on a few articles from a TechEd presentation in Australia next week that may help. For now I think the best reasources are the V5 iSDK, various threads here and my clustering V5 article on ViaVE.
I'm in the middle of a revamp for the ViaVE site that will contain more updated VE information but its probably 3 weeks away.
Feel free to post specific issue here.
Your zoomlevel error I suspect is becouse now you access directly from the object passes into the event:
http://msdn2.microsoft.com/en-us/library/bb429609.aspx
e.zoomLevel
John.
Thanks folks. I spent the cracks between my other work today upgrading it. It wasn't too terrible, though I was pretty surly to start with

Most of the differences were in the find and pushpins. And I'm still not sure what to do with the e.view.setZoomLevel. That's going to take some more study methinks.
Thanks again!
Dean