How to get Primefaces Marker Data via jQuery

UI Components for JSF
Post Reply
besoares90
Posts: 1
Joined: 15 Jan 2015, 19:48

15 Jan 2015, 19:51

I'm using Primefaces (5.1) Marker to add markers on my map and it works fine.
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.

Am I doing it right? If this is the right way how can i retrieve this information?

Code: Select all

Marker marker = new Marker(myLatLng, myTitle, myObjectData, myIcon, myShadow);

Code: Select all

var map = PF('map').getMap();

//here is my problem
map.markers[0].???? = myData;

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 21 guests