How to get marker object from angular google maps without clicking it2019 Community Moderator Electiondynamically change visibility of markersAdd multiple markers on Google Map from JSON responseGoogle Maps V3 - Switching on/off groups of markersUpdating specific markers on google maps with FirebaseAngular 2+ Google Maps get coordinates from click position on map to update marker positionShowing only one marker when there should be multiple in Angular Google MapAdd dynamic line using angular2 google mapsAngular, Google Maps, How to get list of markers from map and use onClick event on them?angular google maps is not loading and doesnt post dynamically to the web serviceRetrieve x and y position on the google map from the coordinates

After `ssh` without `-X` to a machine, is it possible to change `$DISPLAY` to make it work like `ssh -X`?

What are some noteworthy "mic-drop" moments in math?

Having the player face themselves after the mid-game

Does Christianity allow for believing on someone else's behalf?

Is it possible to avoid unpacking when merging Association?

Is it safe to abruptly remove Arduino power?

Why does Solve lock up when trying to solve the quadratic equation with large integers?

Called into a meeting and told we are being made redundant (laid off) and "not to share outside". Can I tell my partner?

Recommendation letter by significant other if you worked with them professionally?

When Schnorr signatures are part of Bitcoin will it be possible validate each block with only one signature validation?

Proving a statement about real numbers

Gaining more land

Does a difference of tense count as a difference of meaning in a minimal pair?

What is the generally accepted pronunciation of “topoi”?

How to design an organic heat-shield?

Damage bonus for different weapons

Specifying a starting column with colortbl package and xcolor

How to resolve: Reviewer #1 says remove section X vs. Reviewer #2 says expand section X

Getting the || sign while using Kurier

What is this diamond of every day?

Why restrict private health insurance?

Signed and unsigned numbers

How can I manipulate the output of Information?

Can't make sense of a paragraph from Lovecraft



How to get marker object from angular google maps without clicking it



2019 Community Moderator Electiondynamically change visibility of markersAdd multiple markers on Google Map from JSON responseGoogle Maps V3 - Switching on/off groups of markersUpdating specific markers on google maps with FirebaseAngular 2+ Google Maps get coordinates from click position on map to update marker positionShowing only one marker when there should be multiple in Angular Google MapAdd dynamic line using angular2 google mapsAngular, Google Maps, How to get list of markers from map and use onClick event on them?angular google maps is not loading and doesnt post dynamically to the web serviceRetrieve x and y position on the google map from the coordinates










0















I basically need to hide the markers on click of a button .I am using angular google maps and I want to retrieve the marker object of the markers present on the map. How can i get that. In the below code, I am passing the markers json response and creating markers on map. Any help on this is much appreciated. Thanks!!



<agm-map 
#AgmMap
(mapReady)="initMap($event)">

<agm-marker
*ngFor="let m of markers; let i = index"
[latitude]="m.lat"
[longitude]="m.lng"
[label]="m.label"
[markerDraggable]="m.draggable"
(dragEnd)="markerDragEnd(m, $event)">



</agm-marker>
</agm-map>









share|improve this question


























    0















    I basically need to hide the markers on click of a button .I am using angular google maps and I want to retrieve the marker object of the markers present on the map. How can i get that. In the below code, I am passing the markers json response and creating markers on map. Any help on this is much appreciated. Thanks!!



    <agm-map 
    #AgmMap
    (mapReady)="initMap($event)">

    <agm-marker
    *ngFor="let m of markers; let i = index"
    [latitude]="m.lat"
    [longitude]="m.lng"
    [label]="m.label"
    [markerDraggable]="m.draggable"
    (dragEnd)="markerDragEnd(m, $event)">



    </agm-marker>
    </agm-map>









    share|improve this question
























      0












      0








      0








      I basically need to hide the markers on click of a button .I am using angular google maps and I want to retrieve the marker object of the markers present on the map. How can i get that. In the below code, I am passing the markers json response and creating markers on map. Any help on this is much appreciated. Thanks!!



      <agm-map 
      #AgmMap
      (mapReady)="initMap($event)">

      <agm-marker
      *ngFor="let m of markers; let i = index"
      [latitude]="m.lat"
      [longitude]="m.lng"
      [label]="m.label"
      [markerDraggable]="m.draggable"
      (dragEnd)="markerDragEnd(m, $event)">



      </agm-marker>
      </agm-map>









      share|improve this question














      I basically need to hide the markers on click of a button .I am using angular google maps and I want to retrieve the marker object of the markers present on the map. How can i get that. In the below code, I am passing the markers json response and creating markers on map. Any help on this is much appreciated. Thanks!!



      <agm-map 
      #AgmMap
      (mapReady)="initMap($event)">

      <agm-marker
      *ngFor="let m of markers; let i = index"
      [latitude]="m.lat"
      [longitude]="m.lng"
      [label]="m.label"
      [markerDraggable]="m.draggable"
      (dragEnd)="markerDragEnd(m, $event)">



      </agm-marker>
      </agm-map>






      google-maps-markers angular-google-maps






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Mar 6 at 14:28









      NancyNancy

      83316




      83316






















          0






          active

          oldest

          votes











          Your Answer






          StackExchange.ifUsing("editor", function ()
          StackExchange.using("externalEditor", function ()
          StackExchange.using("snippets", function ()
          StackExchange.snippets.init();
          );
          );
          , "code-snippets");

          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "1"
          ;
          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: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          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%2fstackoverflow.com%2fquestions%2f55025446%2fhow-to-get-marker-object-from-angular-google-maps-without-clicking-it%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 Stack Overflow!


          • 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%2fstackoverflow.com%2fquestions%2f55025446%2fhow-to-get-marker-object-from-angular-google-maps-without-clicking-it%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

          AWS Lex not identifying response if by a variable The 2019 Stack Overflow Developer Survey Results Are In Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern) The Ask Question Wizard is Live! Data science time! April 2019 and salary with experienceEnforcing custom enumeration in AWS LEX for slot valuesHow to give response based on user response in Amazon Lex?Intercepting AWS Lambda Response to a AWS Lex QueryLex chat bot error: Reached second execution of fulfillment lambda on the same utteranceamazon lex showing invalid responseLambda response send back to Lex slot?Response card in Amazon lexAmazon Lex - Lambda response return HTML to botHow can I solve 424 (Failed Dependency) (python) obtained from Amazon lex?

          Алба-Юлія

          Захаров Федір Захарович