<?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 graphic layer on client side in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/drawing-graphic-layer-on-client-side/m-p/279799#M25839</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;OK. so I figured it out!!! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;the problem was as I wrote before - when I release mouse button, but still moves mouse over the screen the map was moving with me. (only in google chrome) but when I changed event from onPanStart/Stop to onMouseDragStart/Stop everything works good, but I had to check if pan tool is active.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;but still..3days went to hell! &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;with greetings&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Krystian.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 02 Oct 2012 14:03:12 GMT</pubDate>
    <dc:creator>Krystianp</dc:creator>
    <dc:date>2012-10-02T14:03:12Z</dc:date>
    <item>
      <title>drawing graphic layer on client side</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/drawing-graphic-layer-on-client-side/m-p/279788#M25828</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've got some problems with drawing graphics point on client side. The problem is, when I draw points by first time by JS api everything is OK. But when&amp;nbsp; points exists and I&amp;nbsp; try to realy fast pan my map window from left to right (for example) my graphic layer can't finish drawing before one pan is ended. After few this kind of operations I can see, that my graphics points aren't in the geographic position as they should be when I started to pan. My question is how can I block again pan untill my graphic is drawn properly. I think it is the only way to prevent described situation.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I would like to mention, that I'm using jQuery for this application and I tried many many tricks like setting flag and setting enableMapNaviagtion() after document ready, I have tried to setTimeout, but for now this doesnt works. Can anybody helps me?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Oct 2012 11:39:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/drawing-graphic-layer-on-client-side/m-p/279788#M25828</guid>
      <dc:creator>Krystianp</dc:creator>
      <dc:date>2012-10-02T11:39:58Z</dc:date>
    </item>
    <item>
      <title>Re: drawing graphic layer on client side</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/drawing-graphic-layer-on-client-side/m-p/279789#M25829</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;How many graphics have you drawn?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There is a setting displayGraphicsOnPan:true that you can pass to the map constructor, but let's get the full picture before jumping to a 'silver bullet' &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Oct 2012 11:46:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/drawing-graphic-layer-on-client-side/m-p/279789#M25829</guid>
      <dc:creator>__Rich_</dc:creator>
      <dc:date>2012-10-02T11:46:25Z</dc:date>
    </item>
    <item>
      <title>Re: drawing graphic layer on client side</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/drawing-graphic-layer-on-client-side/m-p/279790#M25830</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;it's depends (scale, terrain etc.) but it's from 1 - 3000 graphics points per screen.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;yeah... displayGraphicsOnPan:true is set, but my problem is that AFTER the pan is over points arent in the same geographic positions.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Oct 2012 11:48:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/drawing-graphic-layer-on-client-side/m-p/279790#M25830</guid>
      <dc:creator>Krystianp</dc:creator>
      <dc:date>2012-10-02T11:48:56Z</dc:date>
    </item>
    <item>
      <title>Re: drawing graphic layer on client side</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/drawing-graphic-layer-on-client-side/m-p/279791#M25831</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;it's depends (scale, terrain etc.) but it's from 1 - 3000 graphics points per screen.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Which browser?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1 = fine&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3000 = probably not fine&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jshelp_start.htm#jshelp/limits_for_graphics.htm"&gt;http://help.arcgis.com/en/webapi/javascript/arcgis/help/jshelp_start.htm#jshelp/limits_for_graphics.htm&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.arcgis.com/threads/67027-QueryTask-error-in-IE9-when-loading-more-than-900-features-(IE8-FF-and-Chrome-works)"&gt;http://forums.arcgis.com/threads/67027-QueryTask-error-in-IE9-when-loading-more-than-900-features-(IE8-FF-and-Chrome-works)&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.arcgis.com/threads/65441-IE-Problems"&gt;http://forums.arcgis.com/threads/65441-IE-Problems&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Oct 2012 11:51:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/drawing-graphic-layer-on-client-side/m-p/279791#M25831</guid>
      <dc:creator>__Rich_</dc:creator>
      <dc:date>2012-10-02T11:51:56Z</dc:date>
    </item>
    <item>
      <title>Re: drawing graphic layer on client side</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/drawing-graphic-layer-on-client-side/m-p/279792#M25832</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;yeah... displayGraphicsOnPan:true is set&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;That's the default, setting it to false might help performance.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;but my problem is that AFTER the pan is over points arent in the same geographic positions&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Does this happen when you only have a few graphics or only when you've got many?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Oct 2012 11:59:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/drawing-graphic-layer-on-client-side/m-p/279792#M25832</guid>
      <dc:creator>__Rich_</dc:creator>
      <dc:date>2012-10-02T11:59:16Z</dc:date>
    </item>
    <item>
      <title>Re: drawing graphic layer on client side</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/drawing-graphic-layer-on-client-side/m-p/279793#M25833</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;That's the default, setting it to false might help performance.&lt;BR /&gt;Does this happen when you only have a few graphics or only when you've got many?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I've read before all links that you sent. It's doesn't matter which browser, or how many graphics are there. I think that JS api can't help me (I really 'know by heart' arcgis JS api documentation &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt; ) from my debugging I can tell that problem is with SVG graphic, it takes some time to add graphics nodes to HTML file and untill this process is ended I should freeze pan option. But I dont know to which event handle this, becouse as I said before $(function(){}) (document.ready() ) not resolve the problem.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Oct 2012 12:09:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/drawing-graphic-layer-on-client-side/m-p/279793#M25833</guid>
      <dc:creator>Krystianp</dc:creator>
      <dc:date>2012-10-02T12:09:45Z</dc:date>
    </item>
    <item>
      <title>Re: drawing graphic layer on client side</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/drawing-graphic-layer-on-client-side/m-p/279794#M25834</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I've read before all links that you sent. It's doesn't matter which browser, or how many graphics are there. I think that JS api can't help me (I really 'know by heart' arcgis JS api documentation &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt; ) from my debugging I can tell that problem is with SVG graphic, it takes some time to add graphics nodes to HTML file and untill this process is ended I should freeze pan option. But I dont know to which event handle this, becouse as I said before $(function(){}) (document.ready() ) not resolve the problem.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;So 1 graphic in Chrome causes a problem? &lt;span class="lia-unicode-emoji" title=":face_with_tongue:"&gt;😛&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've got a few layers where I add hundreds of graphics and I haven't seen this problem, yep it can be laggy but the graphics are positioned correctly, so there must be something else going on.&amp;nbsp; (I don't deploy layers like this to production though!)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm not surprised document.ready() doesn't help.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How/when are you adding the graphics?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Oct 2012 12:18:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/drawing-graphic-layer-on-client-side/m-p/279794#M25834</guid>
      <dc:creator>__Rich_</dc:creator>
      <dc:date>2012-10-02T12:18:01Z</dc:date>
    </item>
    <item>
      <title>Re: drawing graphic layer on client side</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/drawing-graphic-layer-on-client-side/m-p/279795#M25835</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;ok so below is my general concept of application&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;when application is started, user can pick the region to show points on the map. He picks something, then by AJAX my script is connecting to database which is returning X,Y coordinates for points, then I create json contains those coordinates and by addGraphics() points are on the map. Now, in event onPanStart I've got sequence:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
&amp;nbsp; MAP.map.onPanStart = function() {
&amp;nbsp;&amp;nbsp; MAP.map.disableMapNavigation();
&amp;nbsp; };
&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;and onPanEnd:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
&amp;nbsp; MAP.map.onPanEnd = function(extent, endPoint) {
&amp;nbsp;&amp;nbsp; if(checkIfExtentContainsBoreholes()){

&amp;nbsp;&amp;nbsp; if (MAP.points.length &amp;gt; 0) {
&amp;nbsp;&amp;nbsp;&amp;nbsp; MAP.drawPoints();
&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;&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; };
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;and first if statement (checkIfExtentContainsBoreholes) checks if database contains points from my extent, and if its true, then it put points by the same function as is before (coordinates to json..)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;so when onPanEnd drawing event has started I can pan map again, and if the graphics still are not on the map and I pan map to other place they appears badly(because the SVG graphic is drawing by relative coordinates to top-left corner of the map)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 13:35:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/drawing-graphic-layer-on-client-side/m-p/279795#M25835</guid>
      <dc:creator>Krystianp</dc:creator>
      <dc:date>2021-12-11T13:35:59Z</dc:date>
    </item>
    <item>
      <title>Re: drawing graphic layer on client side</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/drawing-graphic-layer-on-client-side/m-p/279796#M25836</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;would it be possible to &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;on pan start - hide graphicsLayer&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;on pan end - show graphicsLayer.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Oct 2012 13:08:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/drawing-graphic-layer-on-client-side/m-p/279796#M25836</guid>
      <dc:creator>JeffPace</dc:creator>
      <dc:date>2012-10-02T13:08:27Z</dc:date>
    </item>
    <item>
      <title>Re: drawing graphic layer on client side</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/drawing-graphic-layer-on-client-side/m-p/279797#M25837</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;would it be possible to &lt;BR /&gt;&lt;BR /&gt;on pan start - hide graphicsLayer&lt;BR /&gt;on pan end - show graphicsLayer.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;yes, I do this, but on pan start / end I've got really lots of code so I past only interesting parts of code. Now when I'm testing application I see, that this problem occuress only in google chrome (my. version is 22.0.1229.79 m) FF or IE is OK.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;another observation&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;when I click mouse button and fast move map and in the end of panning I release mouse button but still move mouse the map is moving by the trace of my mouse (its only about for ~0.2 sec.) but if i move map very quickly I can pan a lot of area and then the postion-error can be saw exactly.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Oct 2012 13:12:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/drawing-graphic-layer-on-client-side/m-p/279797#M25837</guid>
      <dc:creator>Krystianp</dc:creator>
      <dc:date>2012-10-02T13:12:20Z</dc:date>
    </item>
    <item>
      <title>Re: drawing graphic layer on client side</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/drawing-graphic-layer-on-client-side/m-p/279798#M25838</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I don't suppose this application is on the web somewhere?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sounds like a lot is going on and tracking down anything from snippets is going to be hard!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Oct 2012 13:17:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/drawing-graphic-layer-on-client-side/m-p/279798#M25838</guid>
      <dc:creator>__Rich_</dc:creator>
      <dc:date>2012-10-02T13:17:08Z</dc:date>
    </item>
    <item>
      <title>Re: drawing graphic layer on client side</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/drawing-graphic-layer-on-client-side/m-p/279799#M25839</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;OK. so I figured it out!!! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;the problem was as I wrote before - when I release mouse button, but still moves mouse over the screen the map was moving with me. (only in google chrome) but when I changed event from onPanStart/Stop to onMouseDragStart/Stop everything works good, but I had to check if pan tool is active.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;but still..3days went to hell! &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;with greetings&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Krystian.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Oct 2012 14:03:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/drawing-graphic-layer-on-client-side/m-p/279799#M25839</guid>
      <dc:creator>Krystianp</dc:creator>
      <dc:date>2012-10-02T14:03:12Z</dc:date>
    </item>
  </channel>
</rss>

