<?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: Drawing a distance circle on map in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Drawing-a-distance-circle-on-map/m-p/35205#M20776</link>
    <description>&lt;P&gt;As chance would have it, I've done this... The attached script should give you some clues as to how to approach the problem. &amp;nbsp;change the centX and centY variables to the coordinates of your location. &amp;nbsp;You can find these using google maps, right-clicking on the location and selecting "what is here?".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2017-02-02 at 9.05.35 AM.png" style="width: 600px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/4980iD2746133DDC32C3D/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2017-02-02 at 9.05.35 AM.png" alt="Screen Shot 2017-02-02 at 9.05.35 AM.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 02 Feb 2017 14:07:54 GMT</pubDate>
    <dc:creator>MikeD_Anderson</dc:creator>
    <dc:date>2017-02-02T14:07:54Z</dc:date>
    <item>
      <title>Drawing a distance circle on map</title>
      <link>https://community.jmp.com/t5/Discussions/Drawing-a-distance-circle-on-map/m-p/35200#M20773</link>
      <description>&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It's my first post here, I hope someone can help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm plotting several port cities on a map as part of an simple application I'm building.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Next step I want to take is to draw circles on the map indicating a user-defined distance from the city defined by a value in the data-table which is modified via scripting. Simple example: plot the location of port of Rotterdam on a map, and draw a 10 nm circle around this location on the map.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you have any suggestions how to program this in JSL (if necessary) and plot this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance for your help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Bart&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 23:23:30 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Drawing-a-distance-circle-on-map/m-p/35200#M20773</guid>
      <dc:creator>Bart_van_Oers</dc:creator>
      <dc:date>2023-06-09T23:23:30Z</dc:date>
    </item>
    <item>
      <title>Re: Drawing a distance circle on map</title>
      <link>https://community.jmp.com/t5/Discussions/Drawing-a-distance-circle-on-map/m-p/35202#M20775</link>
      <description>&lt;P&gt;I don't know if this solution will eventually involve a script, but even if it will, I recommend performing the action interactively first, if possible. I also recommend using JMP objects as much as possible instead of 'starting from scratch.' I suggest that you use Graph Builder. It has a role (drop zone) for shapes or maps. Your data will include the latitude and longitude for each city. They will go into the Y and X roles, respectively. The Graph Builder also has a role for size. You can experiment with different values in this column for each city to obtain the correct diameter.&lt;/P&gt;
&lt;P&gt;You can save the script for this finished Graph Builder to re-use it or to start your own script.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Feb 2017 13:26:23 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Drawing-a-distance-circle-on-map/m-p/35202#M20775</guid>
      <dc:creator>Mark_Bailey</dc:creator>
      <dc:date>2017-02-02T13:26:23Z</dc:date>
    </item>
    <item>
      <title>Re: Drawing a distance circle on map</title>
      <link>https://community.jmp.com/t5/Discussions/Drawing-a-distance-circle-on-map/m-p/35205#M20776</link>
      <description>&lt;P&gt;As chance would have it, I've done this... The attached script should give you some clues as to how to approach the problem. &amp;nbsp;change the centX and centY variables to the coordinates of your location. &amp;nbsp;You can find these using google maps, right-clicking on the location and selecting "what is here?".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2017-02-02 at 9.05.35 AM.png" style="width: 600px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/4980iD2746133DDC32C3D/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2017-02-02 at 9.05.35 AM.png" alt="Screen Shot 2017-02-02 at 9.05.35 AM.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Feb 2017 14:07:54 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Drawing-a-distance-circle-on-map/m-p/35205#M20776</guid>
      <dc:creator>MikeD_Anderson</dc:creator>
      <dc:date>2017-02-02T14:07:54Z</dc:date>
    </item>
    <item>
      <title>Re: Drawing a distance circle on map</title>
      <link>https://community.jmp.com/t5/Discussions/Drawing-a-distance-circle-on-map/m-p/35207#M20777</link>
      <description>&lt;P&gt;Thank you both; I ended up using the 2nd solution. I did a brief cross-check to sort out the conversion of miles to degrees based on a known distance between two locations and the results match.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Bart&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Knipsel.PNG" style="width: 610px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/4981i256894C85C36BF3D/image-size/large?v=v2&amp;amp;px=999" role="button" title="Knipsel.PNG" alt="Knipsel.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Feb 2017 14:34:19 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Drawing-a-distance-circle-on-map/m-p/35207#M20777</guid>
      <dc:creator>Bart_van_Oers</dc:creator>
      <dc:date>2017-02-02T14:34:19Z</dc:date>
    </item>
    <item>
      <title>Re: Drawing a distance circle on map</title>
      <link>https://community.jmp.com/t5/Discussions/Drawing-a-distance-circle-on-map/m-p/35323#M20842</link>
      <description>I have a brief additional question that I would like to ask.&lt;BR /&gt;&lt;BR /&gt;The radius of the circles is user-defined and may change while using the&lt;BR /&gt;script. What would be straightforward way of updating the circles radius&lt;BR /&gt;interactively?&lt;BR /&gt;&lt;BR /&gt;I have already experience with updating individual graphical elements&lt;BR /&gt;via references, but little experience with updating ranges of graphical&lt;BR /&gt;elements. Would I need to store this information (the reference to the&lt;BR /&gt;relevant circles?) in a list or matrix?&lt;BR /&gt;&lt;BR /&gt;Thanks again for your help,&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Bart&lt;BR /&gt;</description>
      <pubDate>Sat, 04 Feb 2017 13:29:24 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Drawing-a-distance-circle-on-map/m-p/35323#M20842</guid>
      <dc:creator>Bart_van_Oers</dc:creator>
      <dc:date>2017-02-04T13:29:24Z</dc:date>
    </item>
    <item>
      <title>Re: Drawing a distance circle on map</title>
      <link>https://community.jmp.com/t5/Discussions/Drawing-a-distance-circle-on-map/m-p/35334#M20849</link>
      <description>&lt;P&gt;The method for doing this would be to&amp;nbsp; "Remove Graphics Script" and then to reapply "Add Graphics Script" with the new coordinates&lt;/P&gt;</description>
      <pubDate>Sat, 04 Feb 2017 17:08:59 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Drawing-a-distance-circle-on-map/m-p/35334#M20849</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2017-02-04T17:08:59Z</dc:date>
    </item>
    <item>
      <title>Re: Drawing a distance circle on map</title>
      <link>https://community.jmp.com/t5/Discussions/Drawing-a-distance-circle-on-map/m-p/35338#M20853</link>
      <description>&lt;P&gt;&lt;A href="https://community.jmp.com/t5/Uncharted/Sunshine-Map/ba-p/21004" target="_blank"&gt;https://community.jmp.com/t5/Uncharted/Sunshine-Map/ba-p/21004&lt;/A&gt; and&amp;nbsp;&lt;A href="https://community.jmp.com/t5/Uncharted/IP-Night-Light/ba-p/21041" target="_blank"&gt;https://community.jmp.com/t5/Uncharted/IP-Night-Light/ba-p/21041&lt;/A&gt; might have useful examples as well.&lt;/P&gt;</description>
      <pubDate>Sun, 05 Feb 2017 00:28:31 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Drawing-a-distance-circle-on-map/m-p/35338#M20853</guid>
      <dc:creator>Craige_Hales</dc:creator>
      <dc:date>2017-02-05T00:28:31Z</dc:date>
    </item>
    <item>
      <title>Re: Drawing a distance circle on map</title>
      <link>https://community.jmp.com/t5/Discussions/Drawing-a-distance-circle-on-map/m-p/35708#M21070</link>
      <description>Dear Craige, Nelson,&lt;BR /&gt;&lt;BR /&gt;Thank you for your suggestions, the removal of graphicsscript approach&lt;BR /&gt;worked well, and I'm now able to adjust the range circles interactively,&lt;BR /&gt;based on a user-defined variable.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Bart&lt;BR /&gt;</description>
      <pubDate>Mon, 13 Feb 2017 11:17:12 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Drawing-a-distance-circle-on-map/m-p/35708#M21070</guid>
      <dc:creator>Bart_van_Oers</dc:creator>
      <dc:date>2017-02-13T11:17:12Z</dc:date>
    </item>
  </channel>
</rss>

