It can be a child of the (map) component.
Attributes
Beside the JSF UIComponent standard attributes.
| Component Attribute | Required | Description | Default value |
| lineWidth | false | The polyline line width. | 10 |
| hexaColor | false | The hexa color of the polyline. | #ff0000 |
| opacity | false | The opacity of the polyline. | 1 |
| geodesic | false | This flag determines whether the polyline is geodesic. | #ff0000 |
| jsVariable | false | This flag determines the Javascript variable you want to use for referring to the polyline. Use this attribute if you want to use write additional Javascript code for the polyline to customize it. | NA |
Is there anyone that is able to draw several lines (yes just to points for a polyline) with ui:repeat? I think there is a problem with that. You can just put lots of markers on your map, but when you try to draw links between your markers, you're stucked.
We are facing the same problem. Any inputs would be appreciated.
Thanks, Gurpreet.
<ui:repeat> does not support <m:point> till now, Please open an issue for this.
Downloaded 1.1.3 and all is working okay.
Tried adding a repeat PolyLine? but nothing display, just my markers;
<a4j:repeat value="#{pinPointsList}" var="pinpoints">
</a4j:repeat> <a4j:repeat value="#{pinPointsList}" var="pinpoints"> </a4j:repeat>Please ignore move the repeat tag so just around the m:point and works a treat.
Any chance of intergrating Google Maps Directions in next release? It plots line along the route which is what I want to do.
Trying to get working in Seam by calling my EJB from a JavaScript? fuction using remote to get the data, then using Google's JS functions. Nightmare.
Thanks,
Please add 'id', 'binding' and 'rendered' basic HTML tag attributes to be consistend with MyFaces? Tomahawk documentation: http://myfaces.apache.org/tomahawk-project/tomahawk12/tagdoc.html
Hi
I am also using gmaf4jsf-core.jar file,using show the google map but did not draw the polyline pls any one help..
Thanks Chandrasekaran.k
@Chandrasekaran,
Which version and what is the page code. Please post our question to the user group.
Thanks
Hi Hazem
i am using gmaps4jsf1.1.3.jar using my project..UI developing jsf2.0 Facelets.. markers show on the map.but dnot show polyline..
<ui:repeat value="#{userBean.locationponit}" var="loca"> <m:polyline lineWidth="10" hexaColor="#ff0000" geodesic="false"> <m:point latitude="#{loca.latitude}" longitude="#{loca.longitude}" /> </m:polyline>
Thanks chandrasekaran chennai
@Chandrasekaran: This will work with you.
<m:polyline lineWidth="10" hexaColor="#ff0000" geodesic="false"> <ui:repeat value="#{userBean.locationponit}" var="loca"> <m:point latitude="#{loca.latitude}" longitude="#{loca.longitude}"> </ui:repeat> </m:polyline>
Hi Hazem
working polyline in my project Thanks...
Chandrasekaran.k Chennai
Hi Hazem
How to draw the circle using geofencing..
Check this: http://code.google.com/p/gmaps4jsf/wiki/circleComponent
Hi Hazem
I have to develop Reverse Geocode in jsf2.0
i follow to this url https://www.ibm.com/developerworks/mydeveloperworks/blogs/hazem/?maxresults=100&sortby=3&lang=pt_br
But i get following error JSF1073: javax.faces.event.AbortProcessingException? caught during processing of PROCESS_VALIDATIONS 3 : UIComponent-ClientId?=mashupForm:marker1, Message=/faces/mashups.xhtml @27,106 valueChangeListener="#{geocode.processValueChangeForMarker}": Target Unreachable, identifier 'geocode' resolved to null 14:33:20,765 SEVERE [javax.enterprise.resource.webcontainer.jsf.context] /faces/mashups.xhtml @27,106 valueChangeListener="#{geocode.processValueChangeForMarker}": Target Unreachable, identifier 'geocode' resolved to null: javax.faces.event.AbortProcessingException?: /faces/mashups.xhtml @27,106 valueChangeListener="#{geocode.processValueChangeForMarker}": Target Unreachable, identifier 'geocode' resolved to null
Hi
1)i wil give lat/long value to gmap,it convert location name and area code..
2) I created a map with a marker using GMaps4JSF, after dragging the marker to any location of the map, the reverse Geocoder service is called to get the location name,latitude and longitude.i create sample application but get following Error,but i am using JSF2.0 Facelets....
javax.faces.event.AbortProcessingException?? caught during processing of PROCESS_VALIDATIONS 3 : UIComponent-ClientId??=mashupForm:marker1, Message=/faces/mashups.xhtml @27,106 valueChangeListener="#{geocode.processValueChangeForMarker}": Target Unreachable, identifier 'geocode' resolved to null
SEVERE javax.enterprise.resource.webcontainer.jsf.context? /faces/mashups.xhtml @27,106 valueChangeListener="#{geocode.processValueChangeForMarker}": Target Unreachable, identifier 'geocode' resolved to null: javax.faces.event.AbortProcessingException??: /faces/mashups.xhtml @27,106 valueChangeListener="#{geocode.processValueChangeForMarker}": Target Unreachable, identifier 'geocode' resolved to null
pls tell, how to solve this error
Thank you
By Chandrasekaran
Did you enable Context & Dependency Injection, via a beans.xml file in the WEB-INF folder?