Details
Description
<mobi:augmentedReality value="#{bean.location}" urlBase="#{bean.baseURL}">
<mobi:selectLocations value="#{bean.locationList}"
var="place"
locationLabel="#{place.name}"
locationLat="#{place.latitude}"
locationLon="#{place.longitude}"
locationAlt="#{place.altitude}"
locationIcon="#{place.icon}"
/>
</mobi:augmentedReality>
This will write out the following JavaScript call for the onclick of a button:
ice.aug(id, "ub=urlBase&labelName1=lat,lon,alt,icon&labelName2=lat,lon,alt,icon");
If altitude is not specified, the value is written as labelName=lat,lon,,icon
If icon is not specified, the value is written as labelName=lat,lon,alt
If icon and altitude is not specified, the value is written as labelName=lat,lon
The selectLocations tag relies on EL providing method names to a JavaBean.
<mobi:selectLocations value="#{bean.locationList}"
var="place"
locationLabel="#{place.name}"
locationLat="#{place.latitude}"
locationLon="#{place.longitude}"
locationAlt="#{place.altitude}"
locationIcon="#{place.icon}"
/>
</mobi:augmentedReality>
This will write out the following JavaScript call for the onclick of a button:
ice.aug(id, "ub=urlBase&labelName1=lat,lon,alt,icon&labelName2=lat,lon,alt,icon");
If altitude is not specified, the value is written as labelName=lat,lon,,icon
If icon is not specified, the value is written as labelName=lat,lon,alt
If icon and altitude is not specified, the value is written as labelName=lat,lon
The selectLocations tag relies on EL providing method names to a JavaBean.
Code cleanup is complete and params is deprecated, so use is as follows:
<mobi:augmentedReality id="selection" >
{locations}<c:forEach items="$
" var="location" >
{location.title}<mobi:augmentedRealityLocation
locationLabel="$
"
{location.latitude}locationLat="$
"
{location.longitude}locationLon="$
"
{location.altitude}locationAlt="$
"
{location.direction}locationDir="$
"
{location.fileName}locationIcon="$
"
/>
</c:forEach>
</mobi:augmentedReality>