<?xml version="1.0" ?> <configuration> <extralods> <extralod level="18" resolution="0.597164283559817" scale="2256.994353" /> <extralod level="19" resolution="0.298582141647617" scale="1128.497176" /> </extralods> </configuration>
<?xml version="1.0" encoding="utf-8"?> <!-- //////////////////////////////////////////////////////////////////////////////// // // Copyright (c) 2010 ESRI // // All rights reserved under the copyright laws of the United States. // You may freely redistribute and use this software, with or // without modification, provided you include the original copyright // and use restrictions. See use restrictions in the file: // <install location>/License.txt // //////////////////////////////////////////////////////////////////////////////// --> <viewer:BaseWidget xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/mx" xmlns:viewer="com.esri.viewer.*" widgetConfigLoaded="init()" xmlns:esri="http://www.esri.com/2008/ags"> <fx:Script> <![CDATA[ import com.esri.ags.events.MapEvent; import com.esri.ags.layers.supportClasses.LOD; private var extraLodsXml:XMLList; private var extraLodsArr:Array = []; private function init():void { if (configXML) { extraLodsXml = configXML..extralod; addLODs(); //map.addEventListener(MapEvent.LOAD, addLODs); //map.dispatchEvent(new MapEvent(MapEvent.LOAD)); } } private function addLODs():void { for (var i:Number = 0; i < extraLodsXml.length(); i++) { var lLevel:Number = Number(extraLodsXml[0].@level[0]); var lResolution:Number = Number(extraLodsXml.@resolution[0]); var lScale:Number = Number(extraLodsXml.@scale[0]); map.lods.push( new LOD( lLevel, lResolution, lScale) ); } } ]]> </fx:Script> </viewer:BaseWidget>
<extralods> <extralod level="18" resolution="0.597164283559817" scale="2256.994353" /> <extralod level="19" resolution="0.298582141647617" scale="1128.497176" /> </extralods>
var lods:Array = map.lods; lods.push( new LOD( NaN, 0.6, 3000) ); lods.push( new LOD( NaN, 0.3, 1500) ); lods.push( new LOD( NaN, 0.1, 500) );
TypeError: Error #1010: Un terme n'est pas défini et n'a pas de propriété. at com.esri.ags.layers::TiledMapServiceLayer/loadTiles()
Les membres connectés peuvent publier, suivre les mises à jour, et plus encore. Nouveau ici ? Inscrivez-vous gratuitement.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.