title: How to get Primefaces Marker Data via jQuery
body: <p>I'm using Primefaces (5.1) Marker to add markers on my map.
  It works fine but with all other informations like lat and lng I want to pass some Object Data and to do that i'm using the setData(Object data) method.
  My problem is that I don't know how to retrieve this information via jQuery.</p>
  
  <p>Am I doing it right? If this is the right way how can i retrieve this information?</p>
  
  
  
  <pre class="lang-java prettyprint-override"><code>Marker marker = new Marker(myLatLng, myTitle, myObjectData, myIcon, myShadow);
  </code></pre>
  
  
  
  <pre class="lang-js prettyprint-override"><code>var map = PF('map').getMap();
  
  //here is my problem
  map.markers[0].???? = myData;
  </code></pre>