<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Custom navigationClass in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/custom-navigationclass/m-p/555364#M12486</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'd like to implement a custom Navigation class to use as a navigationClass on a Map object.&amp;nbsp; Unfortunately, the existing Navigation class requires an slider:mx.controls.sliderClasses.Slider skin part; I'd like to create a navigation class that uses a slider:spark.components.supportClasses.SliderBase skin part instead.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there a specification of the interface that a custom navigationClass must implement, or at least a list of the events it must broadcast to correctly work with a Map class?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help is appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Brad&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 24 Jun 2010 16:20:16 GMT</pubDate>
    <dc:creator>BradUmbaugh</dc:creator>
    <dc:date>2010-06-24T16:20:16Z</dc:date>
    <item>
      <title>Custom navigationClass</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/custom-navigationclass/m-p/555364#M12486</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'd like to implement a custom Navigation class to use as a navigationClass on a Map object.&amp;nbsp; Unfortunately, the existing Navigation class requires an slider:mx.controls.sliderClasses.Slider skin part; I'd like to create a navigation class that uses a slider:spark.components.supportClasses.SliderBase skin part instead.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there a specification of the interface that a custom navigationClass must implement, or at least a list of the events it must broadcast to correctly work with a Map class?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help is appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Brad&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jun 2010 16:20:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/custom-navigationclass/m-p/555364#M12486</guid>
      <dc:creator>BradUmbaugh</dc:creator>
      <dc:date>2010-06-24T16:20:16Z</dc:date>
    </item>
    <item>
      <title>Re: Custom navigationClass</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/custom-navigationclass/m-p/555365#M12487</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The navigationClass is only expected to be a UIComponent. It has no requirements. If it has a "map" property, the Map will set itself on it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The slider is not a required skin part:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/webapi/flex/apiref/com/esri/ags/components/Navigation.html#SkinPartSummary"&gt;http://help.arcgis.com/en/webapi/flex/apiref/com/esri/ags/components/Navigation.html#SkinPartSummary&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You could just create a custom skin where you've removed the mx:VSlider and added a Spark slider and then call hostComponet.map.level = slider.value when the slider changes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you don't want to put this logic in the skin, you could extend the Navigation component, add your own skin part and override partAdded()/partRemoved() and then set this new class as the Map's navigationClass.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You'll also want to listen for extent changes on the map and do something like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;slider.value = event.lod.level;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jun 2010 20:08:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/custom-navigationclass/m-p/555365#M12487</guid>
      <dc:creator>DasaPaddock</dc:creator>
      <dc:date>2010-06-24T20:08:39Z</dc:date>
    </item>
  </channel>
</rss>

