primefaces-gmap

binding of <p:gmap component doesn't work - Primefaces 3.4.1

冷暖自知 提交于 2019-12-24 18:12:21
问题 I'm using the p:gmap component in an application, but when I try to use the binding attribute to reference a GMap in a bean, it doesn't work and the map is not showed. JSF code: <p:gmap binding="#{mapBean.map}" center=" -26.9995, -49.686" zoom="11" type="ROADMAP" /> Backing bean code: public GMap getMap() { map = new GMap(); map.setCenter("-26.9995, -49.686"); map.setZoom(11); map.setType("ROADMAP"); map.setModel(geoModel); map.setStyle("width:850px;height:450px"); map.setWidgetVar("vMap");

How to create a draggable marker?

て烟熏妆下的殇ゞ 提交于 2019-12-13 20:38:25
问题 Code below it's able to create a marker. But I want to create a draggable marker, problem is that is not sending the click event to the server after the marker has been created. When the markes is created the draggable flag is set to true. Any ideas? <p:gmap id="gmap" center="36.890257,30.707417" zoom="13" type="HYBRID" style="width:600px;height:400px" model="#{mapBean.emptyModel}" onPointClick="handlePointClick(event);" widgetVar="map"> <p:ajax event="markerDrag" listener="#{mapBean