<?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 and CAD file in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/drawing-and-cad-file/m-p/3381#M289</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It only needs minor adjustments, if you customized it just do the following.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;add the following to the map.on("load"):&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;nbsp; map.on("load", function () {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; toolbar = new Draw(map);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; toolbar.on("draw-end", addToMap);
&amp;nbsp; //toolbar.on("draw-complete", addMeas);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; editToolbar = new Edit(map);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; map.on("click", function (evt) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; editToolbar.deactivate();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; });
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; createMapMenu();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; createGraphicsMenu(); 
&amp;nbsp; map.reposition();&amp;nbsp; //Add this line
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; map.resize();&amp;nbsp; ///Add this line
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; });&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And remove the following from the CSS:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; html, body {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; height: 97%;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; width: 98%;
&amp;nbsp; &amp;lt;!--Remove the Margin here--&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Adding a save button seems like a lot of work and I don;t have the time atm &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Dec 2021 20:08:49 GMT</pubDate>
    <dc:creator>TimWitt2</dc:creator>
    <dc:date>2021-12-10T20:08:49Z</dc:date>
    <item>
      <title>Drawing and CAD file</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/drawing-and-cad-file/m-p/3371#M279</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am importing our CAD files into ArcGIS so that I can server them up to the JavaScript API using Server.&amp;nbsp; These CAD files do not have any spatial information at this point.&amp;nbsp; What we are doing is really looking at the inside of our stores when zoomed in very closely.&amp;nbsp; I've been tasked to come up with a way to allow our upper management the ability to draw a box that will give them the sqft of that box and be able to either add some data/label to that box or be able to pull some information into that box.&amp;nbsp;&amp;nbsp; In other words show changes to departments that want made to the store over top the CAD drawing. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas/suggestions on how to get going on this project.&amp;nbsp; The measurement tool and drawing tools are nice don't really help me with this problem.&amp;nbsp; Examples are always appreciated. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Mar 2015 14:45:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/drawing-and-cad-file/m-p/3371#M279</guid>
      <dc:creator>deleted-user-yA_w_FC9FKe5</dc:creator>
      <dc:date>2015-03-24T14:45:25Z</dc:date>
    </item>
    <item>
      <title>Re: Drawing and CAD file</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/drawing-and-cad-file/m-p/3372#M280</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Michael,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;maybe check out my widget. &lt;A href="http://jsfiddle.net/timw1984/4p7d241v/17/embedded/result/" title="http://jsfiddle.net/timw1984/4p7d241v/17/embedded/result/"&gt;http://jsfiddle.net/timw1984/4p7d241v/17/embedded/result/&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just check "Add Measurements" and start drawing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here is the code &lt;A href="https://community.esri.com/migration-blogpost/1200"&gt;Javascript API - Advanced Draw widget&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tim &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Mar 2015 14:50:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/drawing-and-cad-file/m-p/3372#M280</guid>
      <dc:creator>TimWitt2</dc:creator>
      <dc:date>2015-03-24T14:50:18Z</dc:date>
    </item>
    <item>
      <title>Re: Drawing and CAD file</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/drawing-and-cad-file/m-p/3373#M281</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is awesome!&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Mar 2015 15:04:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/drawing-and-cad-file/m-p/3373#M281</guid>
      <dc:creator>deleted-user-yA_w_FC9FKe5</dc:creator>
      <dc:date>2015-03-24T15:04:02Z</dc:date>
    </item>
    <item>
      <title>Re: Drawing and CAD file</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/drawing-and-cad-file/m-p/3374#M282</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When I click on the map the actual place it starts to draw or put a text piece is off.&amp;nbsp; It seems to be high and to the right.&amp;nbsp; I've seen this before and believe their is a fix.&amp;nbsp; What am I doing wrong?&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Mar 2015 18:05:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/drawing-and-cad-file/m-p/3374#M282</guid>
      <dc:creator>deleted-user-yA_w_FC9FKe5</dc:creator>
      <dc:date>2015-03-24T18:05:51Z</dc:date>
    </item>
    <item>
      <title>Re: Drawing and CAD file</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/drawing-and-cad-file/m-p/3375#M283</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This might help: &lt;A href="https://community.esri.com/thread/43662"&gt;Map Navigation Mouse Offset?&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Mar 2015 18:08:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/drawing-and-cad-file/m-p/3375#M283</guid>
      <dc:creator>TimWitt2</dc:creator>
      <dc:date>2015-03-24T18:08:07Z</dc:date>
    </item>
    <item>
      <title>Re: Drawing and CAD file</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/drawing-and-cad-file/m-p/3376#M284</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is interesting is that I get this issue using your example as well.&amp;nbsp; Try following a highway at the start I think you will see what I mean.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;A class="jive-link-external-small" href="http://jsfiddle.net/timw1984/4p7d241v/17/embedded/result/" rel="nofollow" target="_blank"&gt;http://jsfiddle.net/timw1984/4p7d241v/17/embedded/result/&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Mar 2015 18:17:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/drawing-and-cad-file/m-p/3376#M284</guid>
      <dc:creator>deleted-user-yA_w_FC9FKe5</dc:creator>
      <dc:date>2015-03-24T18:17:22Z</dc:date>
    </item>
    <item>
      <title>Re: Drawing and CAD file</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/drawing-and-cad-file/m-p/3377#M285</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Everything works for me correct.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Mar 2015 18:21:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/drawing-and-cad-file/m-p/3377#M285</guid>
      <dc:creator>TimWitt2</dc:creator>
      <dc:date>2015-03-24T18:21:46Z</dc:date>
    </item>
    <item>
      <title>Re: Drawing and CAD file</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/drawing-and-cad-file/m-p/3378#M286</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you using Chrome or IE because I just did a test and everything works fine in Chrome but IE is off for some strange reason.&amp;nbsp; Sadly IE is what our company browser is.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Mar 2015 18:28:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/drawing-and-cad-file/m-p/3378#M286</guid>
      <dc:creator>deleted-user-yA_w_FC9FKe5</dc:creator>
      <dc:date>2015-03-24T18:28:20Z</dc:date>
    </item>
    <item>
      <title>Re: Drawing and CAD file</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/drawing-and-cad-file/m-p/3379#M287</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Michael,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it should be fixed with the version I published today.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 May 2015 18:26:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/drawing-and-cad-file/m-p/3379#M287</guid>
      <dc:creator>TimWitt2</dc:creator>
      <dc:date>2015-05-19T18:26:50Z</dc:date>
    </item>
    <item>
      <title>Re: Drawing and CAD file</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/drawing-and-cad-file/m-p/3380#M288</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Where do I get the new version from?&amp;nbsp; Any chance you created a save button for the graphics.&amp;nbsp; It is such an awesome tool.&amp;nbsp; I love it.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 May 2015 18:41:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/drawing-and-cad-file/m-p/3380#M288</guid>
      <dc:creator>deleted-user-yA_w_FC9FKe5</dc:creator>
      <dc:date>2015-05-19T18:41:03Z</dc:date>
    </item>
    <item>
      <title>Re: Drawing and CAD file</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/drawing-and-cad-file/m-p/3381#M289</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It only needs minor adjustments, if you customized it just do the following.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;add the following to the map.on("load"):&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;nbsp; map.on("load", function () {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; toolbar = new Draw(map);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; toolbar.on("draw-end", addToMap);
&amp;nbsp; //toolbar.on("draw-complete", addMeas);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; editToolbar = new Edit(map);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; map.on("click", function (evt) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; editToolbar.deactivate();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; });
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; createMapMenu();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; createGraphicsMenu(); 
&amp;nbsp; map.reposition();&amp;nbsp; //Add this line
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; map.resize();&amp;nbsp; ///Add this line
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; });&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And remove the following from the CSS:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; html, body {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; height: 97%;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; width: 98%;
&amp;nbsp; &amp;lt;!--Remove the Margin here--&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Adding a save button seems like a lot of work and I don;t have the time atm &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 20:08:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/drawing-and-cad-file/m-p/3381#M289</guid>
      <dc:creator>TimWitt2</dc:creator>
      <dc:date>2021-12-10T20:08:49Z</dc:date>
    </item>
    <item>
      <title>Re: Drawing and CAD file</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/drawing-and-cad-file/m-p/3382#M290</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was so excited to try this but it did not seem to work.&amp;nbsp; I wish I was smart enough to understand why it is not working or how to add it to a save button but I am not. Any thoughts Advance Draw Tool Guy? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BTW - Maybe I was using it wrong.&amp;nbsp; It is my understanding that since we were invoking the editor on the click event that I didn't need to do anything else.&amp;nbsp; However, when I added the code and then drew some stuff and came back in my drawings were gone.&amp;nbsp; I looked at the right click events and don't see where I would do anything else.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 May 2015 01:54:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/drawing-and-cad-file/m-p/3382#M290</guid>
      <dc:creator>deleted-user-yA_w_FC9FKe5</dc:creator>
      <dc:date>2015-05-20T01:54:25Z</dc:date>
    </item>
  </channel>
</rss>

