What it doesXBL component which is rendered as a Google Maps widget on the page. It
is bound to an address, and optionally to a longitude/latitude. In
essence:
UsageYou use the map component with:<fr:map address-ref="address" id="unittest-map"
longitude-ref="longitude" latitude-ref="latitude"
style="width: 500px; height: 300px"/>Where:
Google API configurationIf you wish to deploy a form using the map component (other than accessing your form with a URL such as http://localhost:8080/orbeon/...), you need to apply for a Google Maps API Key. After you obtained your key, indicate it in the following property that you add to your config/properties-local.xml:<property as="xs:string" name="oxf.xforms.xbl.fr.map.key" value="..."/>oxf.xforms.xbl.fr.map.key property, but you need the oxf.xforms.xbl.fr.map.clientid property instead:<property as="xs:string" name="oxf.xforms.xbl.fr.map.clientid" value="..."/>NOTE: Set your client id without the leading gme- prefix.When using Google Maps Premier, you can in addition enable SSL with the following property: <property as="xs:boolean" name="oxf.xforms.xbl.fr.map.ssl" value="true"/> |
