some changes on arcgis with dojo 1.7 or above

when dojo 1.7 and AMD style is adopted, examples on arcgis website may not work directly. this post mark some changes

 

1: dojo.connect  --> dojo/on

events name might be changed from "onXXX" to "xxx" 

 

for example: map onLoad event is changed to load , now we use

 

on(mapobj, "load", function(evt) {}); instead of dojo.connect(mapobj, "onLoad", function(evt){});

 

 

你可能感兴趣的:(arcgis)