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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user