Adding feature to highlight layer forces redraw of original layerOpenLayers 3 - how to redraw a single...

Is there any danger of my neighbor having my wife's signature?

How can changes in personality/values of a person who turned into a vampire be explained?

Is it ethical to apply for a job on someone's behalf?

Will linear voltage regulator step up current?

For the Circle of Spores druid's Halo of Spores feature, is your reaction used regardless of whether the other creature succeeds on the saving throw?

Is it possible to detect 100% of SQLi with a simple regex?

Aliased pipeline using head and cut

Multiple null checks in Java 8

How bad is a Computer Science course that doesn't teach Design Patterns?

Was the Soviet N1 really capable of sending 9.6 GB/s of telemetry?

Found a major flaw in paper from home university – to which I would like to return

Given the mapping a = 1, b = 2, ... z = 26, and an encoded message, count the number of ways it can be decoded

How many copper coins fit inside a cubic foot?

How can I differentiate duration vs starting time

Can a planet be tidally unlocked?

Why are "square law" devices important?

In the Lost in Space intro why was Dr. Smith actor listed as a special guest star?

Euler and minus sign

Coworker is trying to get me to sign his petition to run for office. How to decline politely?

Why is Bernie Sanders maximum accepted donation on actblue $5600?

Buying a "Used" Router

Fundamental Theorem of Calculus I help!

Aligning Systems of Equations

Do these large-scale, human power-plant-tending robots from the Matrix movies have a name, in-universe or out?



Adding feature to highlight layer forces redraw of original layer


OpenLayers 3 - how to redraw a single featureHighlight a feature on WMS layer using OL3 + mapserverOpenLayers3 Redraw MAP/RefreshWhere is the drawn feature when the drawend is triggered in OL3highlight zoomed featureHighlight only the center feature on openlayersopenlayers3 restore original style of specific featureQuick doubt about adding a Feature to a Vector LayerAdding a feature to Openlayers Vector sourceOpenLayers: GeoJSON Vector-Layer refresh / redraw every second













0















I have two VectorLayers setup, one for my actual features and another one for highlights (I'm rendering ~10000 features so I have a separate layer for highlight as recommended by ahocevar).



However, whenever I add/remove features to the highlight layer, it seems that the original layer is forced to be redrawn again, even though there was no interaction with that particular layer (besides hit detection).



Am I doing something wrong or does OL always rerenders all the layers when one of them changes?









share



























    0















    I have two VectorLayers setup, one for my actual features and another one for highlights (I'm rendering ~10000 features so I have a separate layer for highlight as recommended by ahocevar).



    However, whenever I add/remove features to the highlight layer, it seems that the original layer is forced to be redrawn again, even though there was no interaction with that particular layer (besides hit detection).



    Am I doing something wrong or does OL always rerenders all the layers when one of them changes?









    share

























      0












      0








      0








      I have two VectorLayers setup, one for my actual features and another one for highlights (I'm rendering ~10000 features so I have a separate layer for highlight as recommended by ahocevar).



      However, whenever I add/remove features to the highlight layer, it seems that the original layer is forced to be redrawn again, even though there was no interaction with that particular layer (besides hit detection).



      Am I doing something wrong or does OL always rerenders all the layers when one of them changes?









      share














      I have two VectorLayers setup, one for my actual features and another one for highlights (I'm rendering ~10000 features so I have a separate layer for highlight as recommended by ahocevar).



      However, whenever I add/remove features to the highlight layer, it seems that the original layer is forced to be redrawn again, even though there was no interaction with that particular layer (besides hit detection).



      Am I doing something wrong or does OL always rerenders all the layers when one of them changes?







      openlayers





      share












      share










      share



      share










      asked 6 mins ago









      ThiattThiatt

      1559




      1559






















          0






          active

          oldest

          votes











          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%2f313145%2fadding-feature-to-highlight-layer-forces-redraw-of-original-layer%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















          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%2f313145%2fadding-feature-to-highlight-layer-forces-redraw-of-original-layer%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 Классификация | Примечания | Ссылки |...

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

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