<?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: How do I create bookmarks (in the javascript code) using point and scale (rather than extent)? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-i-create-bookmarks-in-the-javascript-code/m-p/1128132#M75653</link>
    <description>&lt;P&gt;Thanks&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;A href="https://community.esri.com/t5/user/viewprofilepage/user-id/400217" target="_self"&gt;LaurenBoyd&lt;/A&gt;&lt;/SPAN&gt;&amp;nbsp;- exactly what I was looking for!&lt;/P&gt;</description>
    <pubDate>Tue, 21 Dec 2021 19:35:36 GMT</pubDate>
    <dc:creator>WWUMap</dc:creator>
    <dc:date>2021-12-21T19:35:36Z</dc:date>
    <item>
      <title>How do I create bookmarks (in the javascript code) using point and scale (rather than extent)?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-i-create-bookmarks-in-the-javascript-code/m-p/1124747#M75550</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm using the Bookmarks widget, preloading bookmarks in the JavaScript code.&lt;BR /&gt;It works fine using &lt;EM&gt;&lt;STRONG&gt;type: extent:&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;new Bookmark({&lt;BR /&gt;name: "Test1",&lt;BR /&gt;viewpoint: {&lt;BR /&gt;targetGeometry: {&lt;BR /&gt;type: "extent",&lt;BR /&gt;xmin: -122.486,&lt;BR /&gt;ymin: 48.738,&lt;BR /&gt;xmax: -122.484,&lt;BR /&gt;ymax: 48.739&lt;BR /&gt;} } }),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But the scale isn't working for &lt;EM&gt;&lt;STRONG&gt;type: point:&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;BR /&gt;new Bookmark({&lt;BR /&gt;name: "Test2",&lt;BR /&gt;viewpoint: {&lt;BR /&gt;targetGeometry: {&lt;BR /&gt;type: "point",&amp;nbsp;&lt;BR /&gt;longitude: -122.488,&lt;BR /&gt;latitude: 48.73,&lt;BR /&gt;scale: ???&lt;BR /&gt;} } }),&lt;BR /&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do I specify / use the scale parameter?&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;~stefan (javascript beginner)&lt;/P&gt;</description>
      <pubDate>Sat, 11 Dec 2021 17:49:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-i-create-bookmarks-in-the-javascript-code/m-p/1124747#M75550</guid>
      <dc:creator>WWUMap</dc:creator>
      <dc:date>2021-12-11T17:49:14Z</dc:date>
    </item>
    <item>
      <title>Re: How do I create bookmarks (in the javascript code) using point and scale (rather than extent)?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-i-create-bookmarks-in-the-javascript-code/m-p/1125667#M75588</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Stefan,&lt;/P&gt;&lt;P&gt;The scale property needs to be set on the&amp;nbsp;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-Viewpoint.html#scale" target="_blank" rel="noopener"&gt;Viewpoint&lt;/A&gt;, not on the target geometry. See the example below:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;const bookmark = new Bookmark({
    name: "Test",
    viewpoint: {
        scale: 1600,
        targetGeometry: {
            type: "point",
            longitude: -122.488,
            latitude: 48.73
        }
    }
});&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;The following sample shows this same code in action on lines 55-66:&amp;nbsp;&lt;A href="https://codepen.io/laurenb14/pen/JjrEYmO?editors=1000" target="_blank"&gt;https://codepen.io/laurenb14/pen/JjrEYmO?editors=1000&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Hope that helps!&lt;/P&gt;&lt;P&gt;-Lauren&lt;/P&gt;</description>
      <pubDate>Tue, 14 Dec 2021 01:41:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-i-create-bookmarks-in-the-javascript-code/m-p/1125667#M75588</guid>
      <dc:creator>LaurenBoyd</dc:creator>
      <dc:date>2021-12-14T01:41:18Z</dc:date>
    </item>
    <item>
      <title>Re: How do I create bookmarks (in the javascript code) using point and scale (rather than extent)?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-i-create-bookmarks-in-the-javascript-code/m-p/1128132#M75653</link>
      <description>&lt;P&gt;Thanks&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;A href="https://community.esri.com/t5/user/viewprofilepage/user-id/400217" target="_self"&gt;LaurenBoyd&lt;/A&gt;&lt;/SPAN&gt;&amp;nbsp;- exactly what I was looking for!&lt;/P&gt;</description>
      <pubDate>Tue, 21 Dec 2021 19:35:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-do-i-create-bookmarks-in-the-javascript-code/m-p/1128132#M75653</guid>
      <dc:creator>WWUMap</dc:creator>
      <dc:date>2021-12-21T19:35:36Z</dc:date>
    </item>
  </channel>
</rss>

