It seems to work ok apart from the fact that my map window gets resized when the site loads up and I am trying to figure out why!
I have been using the editor sample code from ESRI just to try and implement it but it seems to resize that map as well so there must be some sort of underlying problem with when the map loads.
Can anyone see from the below code why the map may not be loading up correctly?
function init() { //This sample requires a proxy page to handle communications with the ArcGIS Server services. You will need to //replace the url below with the location of a proxy on your machine. See the 'Using the proxy page' help topic //for details on setting up a proxy page. esri.config.defaults.io.proxyUrl = "/arcgisserver/apis/javascript/proxy/proxy.ashx"; var extent = new esri.geometry.Extent({"xmin":-8580056.42,"ymin":4699883.55, "xmax":-8562858.09,"ymax":4711349.11,"spatialReference":{"wkid":3857}}); map = new esri.Map("map",{extent:extent}); dojo.connect(map, "onLoad", function() { dojo.connect(dijit.byId('map'), 'resize', function() { resizeMap(); }); }); dojo.connect(map, "onLayersAddResult", initEditing); var basemap = new esri.layers.ArcGISTiledMapServiceLayer("http://server.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer"); map.addLayer(basemap);