<?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 Re: goToOverride with Bookmarks in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/gotooverride-with-bookmarks/m-p/1285343#M81028</link>
    <description>&lt;P&gt;Thanks Anne, this worked!&lt;/P&gt;</description>
    <pubDate>Wed, 03 May 2023 18:07:06 GMT</pubDate>
    <dc:creator>Leonidas</dc:creator>
    <dc:date>2023-05-03T18:07:06Z</dc:date>
    <item>
      <title>goToOverride with Bookmarks</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/gotooverride-with-bookmarks/m-p/1285217#M81025</link>
      <description>&lt;P&gt;I am trying to wrap my head around how I can use the goToOverride with Bookmarks to slow down the change of view with the duration option.&amp;nbsp; I can get the scale work which is part of the target set of options.&amp;nbsp;&lt;/P&gt;&lt;P&gt;It looks like any time goTo is used, a target is required and the options are optional which is my hang up.&amp;nbsp; How do I specify in the goToOverride to use the selected book mark as the target.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Code below does not work with line 8 being the issue.&amp;nbsp; I have tried a few different options here.&amp;nbsp; How do I reference the selected bookmark?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;const bookmarks = new Bookmarks({
          view: view,  
          // goToOvverideTesting not working
          goToOverride: function (view, options){
            console.log(options);
            // options.easing= "ease-in";
            options.duration= 2000;           
            return view.goTo(bookmarks.viewpoint, options);            
          },
          // goToOverrideTesting
          bookmarks:[
            new Bookmark({
              name: "Carp",
              viewpoint: {
                targetGeometry: {
                  type: "extent",
                  spatialReference: {
                    wkid: 102100
                  },
                  xmin: -8467000,
                  ymin: 5674000,
                  xmax: -8461000,
                  ymax: 5677700
                }
              }
            }),
            new Bookmark({
              name: "Kemptville",
              viewpoint: {
                targetGeometry: {
                  type: "extent",
                  spatialReference: {
                    wkid: 102100
                  },
                  xmin: -8438000,
                  ymin: 5608300,
                  xmax: -8405300,
                  ymax: 5635200
                }
              }
            }),
          ]
        });&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 May 2023 15:36:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/gotooverride-with-bookmarks/m-p/1285217#M81025</guid>
      <dc:creator>Leonidas</dc:creator>
      <dc:date>2023-05-03T15:36:26Z</dc:date>
    </item>
    <item>
      <title>Re: goToOverride with Bookmarks</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/gotooverride-with-bookmarks/m-p/1285307#M81027</link>
      <description>&lt;P&gt;Try something like this for the goToOverride:&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;goToOverride: (view, goToParams) =&amp;gt; {
  const options = {
     duration: 2000
  };
  return view.goTo(goToParams.target, options);
},&lt;/LI-CODE&gt;&lt;P&gt;The original target will be stored in that 2nd parameter of the goToOverride function.&lt;/P&gt;</description>
      <pubDate>Wed, 03 May 2023 17:29:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/gotooverride-with-bookmarks/m-p/1285307#M81027</guid>
      <dc:creator>AnneFitz</dc:creator>
      <dc:date>2023-05-03T17:29:21Z</dc:date>
    </item>
    <item>
      <title>Re: goToOverride with Bookmarks</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/gotooverride-with-bookmarks/m-p/1285343#M81028</link>
      <description>&lt;P&gt;Thanks Anne, this worked!&lt;/P&gt;</description>
      <pubDate>Wed, 03 May 2023 18:07:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/gotooverride-with-bookmarks/m-p/1285343#M81028</guid>
      <dc:creator>Leonidas</dc:creator>
      <dc:date>2023-05-03T18:07:06Z</dc:date>
    </item>
  </channel>
</rss>

