Setting the map extent - spatial reference for wkid 27700

المشرف العام

Administrator
طاقم الإدارة
I want to set the extent of my basemap on application start but when I add the following code it doesn't seem to like it and renders a blank div?

map = new Map("map", { logo: false, extent: new esri.geometry.Extent("xmin="-377930, "ymin"=470972, "xmax"=849893, "ymax"=1269406, new SpatialReference({ wkid: 27700 })) }); initLayer(); baseMapServiceLayer = new my.BaseMap(); I wasn't sure if I should replace esri.geometry.Extent with Extent but that makes no difference - any help would be good!



أكثر...
 
أعلى