diff --git a/framework/common/webcommon/includes/geolocation.ftl b/framework/common/webcommon/includes/geolocation.ftl index 06c8e7bc76..fcd943c93f 100644 --- a/framework/common/webcommon/includes/geolocation.ftl +++ b/framework/common/webcommon/includes/geolocation.ftl @@ -34,14 +34,33 @@ under the License. map.setCenter(new GLatLng(37.4419, -122.1419), 12); map.setUIToDefault(); - <#list geoChart.points as point> - map.addOverlay(new GMarker(new GLatLng(${point.lat?c}, ${point.lon?c}))); + <#list geoChart.points as point> + map.addOverlay(new GMarker(new GLatLng(${point.lat?c}, ${point.lon?c}))); } <#elseif geoChart.dataSourceId == "GEOPT_YAHOO"> <#elseif geoChart.dataSourceId == "GEOPT_MICROSOFT"> <#elseif geoChart.dataSourceId == "GEOPT_MAPTP"> + <#elseif geoChart.dataSourceId == "GEOPT_ADDRESS_GOOGLE"> +
+
${uiLabelMap.CommonLoading}
+
+ <#assign defaultUrl = "https." + request.getServerName()> + <#assign defaultGogleMapKey = Static["org.ofbiz.base.util.UtilProperties"].getPropertyValue("general.properties", defaultUrl)> + + <#else> diff --git a/framework/example/config/ExampleUiLabels.xml b/framework/example/config/ExampleUiLabels.xml index 65b0d4c5f6..a326f2f1ee 100644 --- a/framework/example/config/ExampleUiLabels.xml +++ b/framework/example/config/ExampleUiLabels.xml @@ -489,6 +489,10 @@ ข้อผิดพลาดในส่วนของความปลอดภัย: ในการรัน ${resourceDescription} คุณต้องได้รับอนุญาตจาก EXAMPLE_${mainAction} หรือ EXAMPLE_ADMIN ก่อน 安全错误: 要运行${methodShortDescription},你必须具有EXAMPLE${securityAction}或EXAMPLE_ADMIN权限 + + Geolocation via address + Géolocalisation par l'adresse + Hi, this is a first example of portlet Salve, questo è il primo esempio di portlet diff --git a/framework/example/webapp/example/WEB-INF/controller.xml b/framework/example/webapp/example/WEB-INF/controller.xml index 1e36a5f5e3..f335446f9b 100644 --- a/framework/example/webapp/example/WEB-INF/controller.xml +++ b/framework/example/webapp/example/WEB-INF/controller.xml @@ -215,6 +215,7 @@ under the License. + @@ -271,6 +272,7 @@ under the License. + diff --git a/framework/example/widget/example/ExampleMenus.xml b/framework/example/widget/example/ExampleMenus.xml index f6a30e1075..878a669770 100644 --- a/framework/example/widget/example/ExampleMenus.xml +++ b/framework/example/widget/example/ExampleMenus.xml @@ -90,12 +90,16 @@ under the License. + + + + - + - + diff --git a/framework/example/widget/example/ExampleScreens.xml b/framework/example/widget/example/ExampleScreens.xml index 93ee285dfb..21badf70e9 100644 --- a/framework/example/widget/example/ExampleScreens.xml +++ b/framework/example/widget/example/ExampleScreens.xml @@ -277,5 +277,38 @@ under the License. + +
+ + + + + + + + + + + + + + + + + +
+ + + + + + + +
+
+
+
+
+