Complement of rev 892579, adding geolocation by address. An example screen is visible at

<OFBiz instance>/example/control/ExampleGeoLocationAddress
This also closes JIRA-2930

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@893277 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Erwan de Ferrieres
2009-12-22 19:11:53 +00:00
parent 1f8dd4049b
commit 2c5f74bb7e
5 changed files with 66 additions and 4 deletions
@@ -277,5 +277,38 @@ under the License.
</widgets>
</section>
</screen>
<screen name="ExampleGeoLocationAddress">
<section>
<actions>
<set field="headerItem" value="ExampleGeoLocation"/>
<set field="tabButtonItem" value="ExampleGeoLocationAddress"/>
<set field="geoChart.dataSourceId" value="GEOPT_ADDRESS_GOOGLE"/>
<set field="geoChart.width" value="800"/>
<set field="geoChart.height" value="500"/>
<set field="contactMechId" value="9015"/>
<entity-one entity-name="PostalAddress" value-field="address"/>
<set field="pointAddress" value="${address.address1} ${address.address2} ${address.postalCode} ${address.city} ${address.stateProvinceGeoId} ${address.countryGeoId}"/>
</actions>
<widgets>
<decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="pre-body">
<include-menu name="ExampleGeoLocation" location="component://example/widget/example/ExampleMenus.xml"/>
</decorator-section>
<decorator-section name="body">
<section>
<widgets>
<container style="clear" />
<label>Using Google geocoding services may need to register for an individual key. Please visit this website to have more details :</label>
<link target="http://code.google.com/intl/fr/apis/maps/signup.html" url-mode="plain" text="Google Maps API"/>
<label style="h3">Geolocation of DemoCustomer, living at ${pointAddress}</label>
<include-screen name="geoChart" location="component://common/widget/CommonScreens.xml"/>
</widgets>
</section>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
</screens>