title: leaflet get custom option from geojson marker
body: <p>I am trying to get clicked geojson marker's custom options.I can do it if i create marker in map.But when i get from geojson not working.My code is :</p>
  
  <pre><code>function onClick(e) {
  get_marker(this.options.marker_id);
  //geojson.features[64].options.marker_id)  
  }
  </code></pre>
  
  <p>get_marker() takes marker's custom id which i defined as a custom marker like this.</p>
  
  <pre><code>customMarker = L.Marker.extend({
         options: { 
            marker_id: 'Custom data!',
            name: '',
            category: '',
            information: '',
            owner: ''
         }
      });
  </code></pre>
  
  <p>and i create marker in map like this.</p>
  
  <pre><code>map.on('click', function(e) {   
          newMarker[i] = new customMarker (e.latlng, {
              draggable : true,
              marker_id : 'new'
          }).addTo(map);
          newMarker[i].on('click', onClick);
  
      newMarker[i].bindPopup("&lt;b&gt;Hello world!&lt;/b&gt;&lt;br /&gt;I am a popup.");
              //.openPopup();
      save_marker(newMarker[i]);
      //$(".bilgi").val(newMarker.getPopup().getContent());
      i++;
  }); 
  </code></pre>
  
  <p>i can't get marker_id option in geojson point.When i set geojson.features[64].options.marker_id as a get_marker parameter it works.But i cant control which marker is clicked.Maybe i have to define geojson as a custom marker but i don't know.How can i solve this problem ?</p>