<?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: Editing esri.symbol.TextSymbol hangs browser on Scale, Rotate when no default bas in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/editing-esri-symbol-textsymbol-hangs-browser-on/m-p/163952#M15220</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Interesting issue. What is the spatial reference of the Aerial basemap you are using?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, could you recreate a sample of the issue using jsfiddle.net so I can take a look?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 07 Apr 2014 15:26:13 GMT</pubDate>
    <dc:creator>JonathanUihlein</dc:creator>
    <dc:date>2014-04-07T15:26:13Z</dc:date>
    <item>
      <title>Editing esri.symbol.TextSymbol hangs browser on Scale, Rotate when no default basemap</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/editing-esri-symbol-textsymbol-hangs-browser-on/m-p/163951#M15219</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am having a peculiar problem with using the Edit toolbar (esri/toolbars/edit) and the Text Symbol (esri/symbols/TextSymbol), where the browser hangs whilst trying to 'Edit' (Rotate, Scale, not Translate) the TextSymbol with the Edit Toolbar.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Basic template example is from &lt;/SPAN&gt;&lt;A href="http://developers.arcgis.com/javascript/samples/toolbar_edit/" rel="nofollow noopener noreferrer" target="_blank"&gt;http://developers.arcgis.com/javascript/samples/toolbar_edit/&lt;/A&gt;&lt;SPAN&gt; and it works fine if the basemap is loaded, however...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I remove the basemap (I am using an internal Aerial Map as my basemap), load the map, load the layers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The try to edit the TextSymbol, it starts the editing, after I activate the edit toolbar with;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;var basemapAerial = new esri.layers.ArcGISTiledMapServiceLayer("http://192.168.0.111/arcgis/rest/services/Aerial/MapServer");
map.addLayers([basemapAerial]);

....

tool = tool | Edit.MOVE;
tool = tool | Edit.EDIT_VERTICES;
tool = tool | Edit.SCALE;
tool = tool | Edit.ROTATE;

// enable text editing if a graphic uses a text symbol
if (graphic.symbol.declaredClass === "esri.symbol.TextSymbol") {
&amp;nbsp;&amp;nbsp; tool = tool | Edit.EDIT_TEXT;
}&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;but hangs the browser if I try to scale or rotate, moving is no problem...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If I put the basemap back (doesn't matter which basemap) with&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
map = new esri.Map("mapDiv", {
&amp;nbsp; center: [19.202661, -34.415346],
&amp;nbsp; zoom: 2,
&amp;nbsp; basemap: "osm"
});
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The scale and rotate on the TextSymbol works again.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It only affects TextSymbol, not others Polygon, etc and is not browser specific,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Testing in IE, Chrome, Firefox and Safari.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Tried to debug, but the browser (tab) hangs completely.. sometimes if I wait long enough&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;the browser (chrome) will say the script has become unresponsive...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope anyone can assist, as I do not want to use a internet basemap, just for this functionality.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Using Arcgis Javascript API 3.8, both online and offline.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Craig Johnson&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 08:35:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/editing-esri-symbol-textsymbol-hangs-browser-on/m-p/163951#M15219</guid>
      <dc:creator>CraigJohnson1</dc:creator>
      <dc:date>2021-12-11T08:35:34Z</dc:date>
    </item>
    <item>
      <title>Re: Editing esri.symbol.TextSymbol hangs browser on Scale, Rotate when no default bas</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/editing-esri-symbol-textsymbol-hangs-browser-on/m-p/163952#M15220</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Interesting issue. What is the spatial reference of the Aerial basemap you are using?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, could you recreate a sample of the issue using jsfiddle.net so I can take a look?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Apr 2014 15:26:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/editing-esri-symbol-textsymbol-hangs-browser-on/m-p/163952#M15220</guid>
      <dc:creator>JonathanUihlein</dc:creator>
      <dc:date>2014-04-07T15:26:13Z</dc:date>
    </item>
    <item>
      <title>Re: Editing esri.symbol.TextSymbol hangs browser on Scale, Rotate when no default bas</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/editing-esri-symbol-textsymbol-hangs-browser-on/m-p/163953#M15221</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Jon,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for taking the time to look at this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The Spatial Reference according to the rest Map Service is &lt;/SPAN&gt;&lt;STRONG&gt;Spatial Reference: 102100&amp;nbsp; (3857) &lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I created a fiddle as requested at &lt;/SPAN&gt;&lt;A href="http://jsfiddle.net/9PRdH/"&gt;http://jsfiddle.net/9PRdH/1/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Some notes on the fiddle javascript:&lt;/SPAN&gt;&lt;BR /&gt;&lt;UL&gt;&lt;BR /&gt;&lt;LI&gt;The main program is a redefine of &lt;A href="http://developers.arcgis.com/javascript/samples/toolbar_edit/"&gt;http://developers.arcgis.com/javascript/samples/toolbar_edit/&lt;/A&gt;&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;I took out all checkbox and options to simplify&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;I commented out the basemap from the new Map() config&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;I changed the center of the map to within the area of my aerial layer&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Added a loadLayers() function to load the aerial layer&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Changed the addGraphics() to addTextGraphics() - only interested in TextSymbol&lt;/LI&gt;&lt;BR /&gt;&lt;/UL&gt;&lt;BR /&gt;&lt;SPAN&gt;Notes to recreate issue:&lt;/SPAN&gt;&lt;BR /&gt;&lt;UL&gt;&lt;BR /&gt;&lt;LI&gt;If you run, click on the Text, you can move it. &lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Trying to perform another function on it, freezes it.&amp;nbsp; &lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;uncomment the basemap (enable) and run again, now it works&lt;/LI&gt;&lt;BR /&gt;&lt;/UL&gt;&lt;BR /&gt;&lt;SPAN&gt;Craig&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Apr 2014 05:39:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/editing-esri-symbol-textsymbol-hangs-browser-on/m-p/163953#M15221</guid>
      <dc:creator>CraigJohnson1</dc:creator>
      <dc:date>2014-04-08T05:39:11Z</dc:date>
    </item>
    <item>
      <title>Re: Editing esri.symbol.TextSymbol hangs browser on Scale, Rotate when no default bas</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/editing-esri-symbol-textsymbol-hangs-browser-on/m-p/163954#M15222</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Craig,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks so much for the sample. It's great.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I used both Firefox and Chrome and was able to cause both browsers to hang using your replication steps. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Will look into this and post my findings.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Apr 2014 15:14:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/editing-esri-symbol-textsymbol-hangs-browser-on/m-p/163954#M15222</guid>
      <dc:creator>JonathanUihlein</dc:creator>
      <dc:date>2014-04-08T15:14:47Z</dc:date>
    </item>
    <item>
      <title>Re: Editing esri.symbol.TextSymbol hangs browser on Scale, Rotate when no default bas</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/editing-esri-symbol-textsymbol-hangs-browser-on/m-p/163955#M15223</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;hi&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;i have the same problem please help&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Apr 2014 09:08:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/editing-esri-symbol-textsymbol-hangs-browser-on/m-p/163955#M15223</guid>
      <dc:creator>mysonymysony</dc:creator>
      <dc:date>2014-04-16T09:08:50Z</dc:date>
    </item>
    <item>
      <title>Re: Editing esri.symbol.TextSymbol hangs browser on Scale, Rotate when no default bas</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/editing-esri-symbol-textsymbol-hangs-browser-on/m-p/163956#M15224</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This has been fixed internally.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In the meantime, use a basemap if possible. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If this is not an option, I can provide a work-around.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;However, you would most likely have to remove this additional code when the new API version is released.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Apr 2014 15:05:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/editing-esri-symbol-textsymbol-hangs-browser-on/m-p/163956#M15224</guid>
      <dc:creator>JonathanUihlein</dc:creator>
      <dc:date>2014-04-16T15:05:29Z</dc:date>
    </item>
    <item>
      <title>Re: Editing esri.symbol.TextSymbol hangs browser on Scale, Rotate when no default bas</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/editing-esri-symbol-textsymbol-hangs-browser-on/m-p/163957#M15225</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Jon,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I would appreciate it if you could provide the workaround, even if I have to edit code, it's no problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;We want to use the functionality for our Town Planning users who have to annotate/label their layer &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;snapshot before printing and I am building a new front end system/framework ...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Craig&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 May 2014 19:27:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/editing-esri-symbol-textsymbol-hangs-browser-on/m-p/163957#M15225</guid>
      <dc:creator>CraigJohnson1</dc:creator>
      <dc:date>2014-05-13T19:27:08Z</dc:date>
    </item>
    <item>
      <title>Re: Editing esri.symbol.TextSymbol hangs browser on Scale, Rotate when no default bas</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/editing-esri-symbol-textsymbol-hangs-browser-on/m-p/163958#M15226</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;In short, you need to temporarily override the _deNormalizePoint() function in _Box.js (which lives inside the toolbars directory) with the following:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;_deNormalizePoint:function(d,a){ return d;}&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 May 2014 19:47:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/editing-esri-symbol-textsymbol-hangs-browser-on/m-p/163958#M15226</guid>
      <dc:creator>JonathanUihlein</dc:creator>
      <dc:date>2014-05-13T19:47:23Z</dc:date>
    </item>
  </channel>
</rss>

