Graphics disappear when zoom in Planned maintenance scheduled April 23, 2019 at 23:30 UTC...

Why are current probes so expensive?

Can gravitational waves pass through a black hole?

3D Masyu - A Die

Find general formula for the terms

Short story about astronauts fertilizing soil with their own bodies

Is there any significance to the prison numbers of the Beagle Boys starting with 176-?

Why did Bronn offer to be Tyrion Lannister's champion in trial by combat?

NIntegrate on a solution of a matrix ODE

How does TikZ render an arc?

Centre cell vertically in tabularx

Where did Ptolemy compare the Earth to the distance of fixed stars?

Does the transliteration of 'Dravidian' exist in Hindu scripture? Does 'Dravida' refer to a Geographical area or an ethnic group?

Is a copyright notice with a non-existent name be invalid?

What does 丫 mean? 丫是什么意思?

What is the proper term for etching or digging of wall to hide conduit of cables

When to apply negative sign when number is squared

The Nth Gryphon Number

The test team as an enemy of development? And how can this be avoided?

How could a hydrazine and N2O4 cloud (or it's reactants) show up in weather radar?

How much damage would a cupful of neutron star matter do to the Earth?

Is Mordenkainens' Sword under powered?

"Destructive power" carried by a B-52?

Google .dev domain strangely redirects to https

Why not use the yoke to control yaw, as well as pitch and roll?



Graphics disappear when zoom in



Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern)
Announcing the arrival of Valued Associate #679: Cesar Manara
Unicorn Meta Zoo #1: Why another podcast?ArcGIS JS API Edit Toolbar permits MOVE but not EDIT_VERTICES or ROTATE - JavaScript error thrownStore Graphics in Local when browser refreshUndomanager did not remove graphics when undo()set infoTemplate for various graphics in graphics layer in loopHash of Feature Layer GraphicsGraphic Layer graphics redraw incorrectly after map zoom eventBasemap layer disappear on print. Only happens with max zoomHighlighted graphics resets on zoom in ArcGIS API for JavaScript?Getting “isWebMercator” Error When Trying To Draw a Circle On Graphics LayerHow to Select Graphics From Graphics Layer Inside a Clicked Circle





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}







2















Recently I have this really weird bug :
I have a new graphics-layer, that I build on runtime, with a point-graphic in it.
On higher extent - ever thing's great, on lower extent (zoom-in) the graphic disappears.



I found, while debugging, that the graphics "_shape" & "_offsets" properties are null when it disappears.



I also noticed that the layer's properties "minSacle" & "maxScale" are both 0 and "visibleAtMapScale" & "visible" are true.



Beside that, everything looks as usual - the graphic stays visible and at the layer's graphics array.










share|improve this question
















bumped to the homepage by Community 22 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.






















    2















    Recently I have this really weird bug :
    I have a new graphics-layer, that I build on runtime, with a point-graphic in it.
    On higher extent - ever thing's great, on lower extent (zoom-in) the graphic disappears.



    I found, while debugging, that the graphics "_shape" & "_offsets" properties are null when it disappears.



    I also noticed that the layer's properties "minSacle" & "maxScale" are both 0 and "visibleAtMapScale" & "visible" are true.



    Beside that, everything looks as usual - the graphic stays visible and at the layer's graphics array.










    share|improve this question
















    bumped to the homepage by Community 22 mins ago


    This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.


















      2












      2








      2








      Recently I have this really weird bug :
      I have a new graphics-layer, that I build on runtime, with a point-graphic in it.
      On higher extent - ever thing's great, on lower extent (zoom-in) the graphic disappears.



      I found, while debugging, that the graphics "_shape" & "_offsets" properties are null when it disappears.



      I also noticed that the layer's properties "minSacle" & "maxScale" are both 0 and "visibleAtMapScale" & "visible" are true.



      Beside that, everything looks as usual - the graphic stays visible and at the layer's graphics array.










      share|improve this question
















      Recently I have this really weird bug :
      I have a new graphics-layer, that I build on runtime, with a point-graphic in it.
      On higher extent - ever thing's great, on lower extent (zoom-in) the graphic disappears.



      I found, while debugging, that the graphics "_shape" & "_offsets" properties are null when it disappears.



      I also noticed that the layer's properties "minSacle" & "maxScale" are both 0 and "visibleAtMapScale" & "visible" are true.



      Beside that, everything looks as usual - the graphic stays visible and at the layer's graphics array.







      arcgis-javascript-api






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Dec 20 '16 at 15:29









      whyzar

      10.7k92866




      10.7k92866










      asked Dec 20 '16 at 15:22









      OphirOphir

      111




      111





      bumped to the homepage by Community 22 mins ago


      This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.







      bumped to the homepage by Community 22 mins ago


      This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
























          1 Answer
          1






          active

          oldest

          votes


















          0














          This can happen if you change the graphic's geometry properties manually rather than using the graphic's setGeometry() method.



          For example, let's say you create a point graphic:



          var graphic = new Graphic(new Point(point), symbol));            
          map.graphics.add(graphic);


          Then later you modify the geometry's x and y values.



          graphic.geometry.x = newX;
          graphic.geometry.y = newY;
          map.graphics.redraw();


          This approach seems to work fine until you start zooming or panning. Whenever you move to an extent that does not include the graphic's initial point, the graphic disappears. So setGeometry() must call additional code for everything to work properly.






          share|improve this answer
























            Your Answer








            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "79"
            };
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function() {
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled) {
            StackExchange.using("snippets", function() {
            createEditor();
            });
            }
            else {
            createEditor();
            }
            });

            function createEditor() {
            StackExchange.prepareEditor({
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: false,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            });


            }
            });














            draft saved

            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fgis.stackexchange.com%2fquestions%2f222094%2fgraphics-disappear-when-zoom-in%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0














            This can happen if you change the graphic's geometry properties manually rather than using the graphic's setGeometry() method.



            For example, let's say you create a point graphic:



            var graphic = new Graphic(new Point(point), symbol));            
            map.graphics.add(graphic);


            Then later you modify the geometry's x and y values.



            graphic.geometry.x = newX;
            graphic.geometry.y = newY;
            map.graphics.redraw();


            This approach seems to work fine until you start zooming or panning. Whenever you move to an extent that does not include the graphic's initial point, the graphic disappears. So setGeometry() must call additional code for everything to work properly.






            share|improve this answer




























              0














              This can happen if you change the graphic's geometry properties manually rather than using the graphic's setGeometry() method.



              For example, let's say you create a point graphic:



              var graphic = new Graphic(new Point(point), symbol));            
              map.graphics.add(graphic);


              Then later you modify the geometry's x and y values.



              graphic.geometry.x = newX;
              graphic.geometry.y = newY;
              map.graphics.redraw();


              This approach seems to work fine until you start zooming or panning. Whenever you move to an extent that does not include the graphic's initial point, the graphic disappears. So setGeometry() must call additional code for everything to work properly.






              share|improve this answer


























                0












                0








                0







                This can happen if you change the graphic's geometry properties manually rather than using the graphic's setGeometry() method.



                For example, let's say you create a point graphic:



                var graphic = new Graphic(new Point(point), symbol));            
                map.graphics.add(graphic);


                Then later you modify the geometry's x and y values.



                graphic.geometry.x = newX;
                graphic.geometry.y = newY;
                map.graphics.redraw();


                This approach seems to work fine until you start zooming or panning. Whenever you move to an extent that does not include the graphic's initial point, the graphic disappears. So setGeometry() must call additional code for everything to work properly.






                share|improve this answer













                This can happen if you change the graphic's geometry properties manually rather than using the graphic's setGeometry() method.



                For example, let's say you create a point graphic:



                var graphic = new Graphic(new Point(point), symbol));            
                map.graphics.add(graphic);


                Then later you modify the geometry's x and y values.



                graphic.geometry.x = newX;
                graphic.geometry.y = newY;
                map.graphics.redraw();


                This approach seems to work fine until you start zooming or panning. Whenever you move to an extent that does not include the graphic's initial point, the graphic disappears. So setGeometry() must call additional code for everything to work properly.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Aug 23 '18 at 16:03









                James LawrukJames Lawruk

                70648




                70648






























                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Geographic Information Systems Stack Exchange!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fgis.stackexchange.com%2fquestions%2f222094%2fgraphics-disappear-when-zoom-in%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    (145452) 2005 RN43 Классификация | Примечания | Ссылки |...

                    Щит и меч (фильм) Содержание Названия серий | Сюжет |...

                    Энтрерриос (город) Содержание История | Географическое...