title: Leaflet.js - Which method to be used for adding markers from GeoJson
body: <p>I reffered <a href="http://leafletjs.com/examples/geojson.html" rel="nofollow">official example</a> provided by Leaflet.js. But things are not clear to me. And I am confuse about which one to use.</p>
  
  <p>Currently, I am using <strong><em>pointToLayer</em></strong> for drawing markers :</p>
  
  <pre><code>L.geoJson(mapGeoJsonData, {  pointToLayer: function (feature, latlng) { .... } })
  </code></pre>
  
  <p>But there is also another way to do the same thing using <strong><em>onEachFeature</em></strong>:</p>
  
  <pre><code>L.geoJson(mapGeoJsonData, {  onEachFeature: function (feature, layer) { .... } })
  </code></pre>
  
  <p>So which one to use when ? What are pros and cons of <em>pointToLayer</em> and <em>onEachFeature</em>.</p>