title: How to identifiy a set marker on the map?
body: <p>I have got a <strong>Map</strong> where I display <strong>Markers</strong> whenever a user clicks on the map in order to draw a <strong>Polygon</strong>. Now I want to allow the user to edit an already set Marker. That means he should be able to klick on the marker and drag it to the desired position. </p>
  
  <p>In order to edit the position of only one Marker I need to identify the one Marker that is being dragged in order to pass the changed position to the according Marker.</p>
  
  <p>I am trying to do this inside the my eventHandler because here I can get some more information for the Marker. Here is one of my handler and the handler where all the updating of the position should happen.</p>
  
  <pre><code>[EventUtils.DRAG_END]: (event, details) =&gt; {
          const target = event.target;
          if (target instanceof H.map.Marker) {
            this.disableMapBehaviour = false;
            const id = target.getId();
            this.props.onDrag(details.calculateGeoCoords(), id);
            this.forceUpdate();
          }
  </code></pre>
  
  <p><strong>My problem is that the <code>getId()</code> function always gives me random ID's.</strong> When I set 10 markers for example, this is how the sequence of the Marker ID looks like:</p>
  
  <ul>
  <li>1 Marker has ID of 2</li>
  <li>2 Marker has ID of 3</li>
  <li>3 Marker has ID of 5</li>
  <li>4 Marker has ID of 6... and the rest is always different. </li>
  </ul>
  
  <p>Why does the Map set the ID's randomly and not like 1,2,3,4,5... ?</p>
  
  <p>Or what am I doing wrong? Should I use something else than the <code>event.target.getId()</code></p>