The issue seems related to the set tag with a decimal constant value.
In ExampleScreens#ExampleGeoLocationPointSet1 we have several demo
constant values set with the code:
                <set field="geoPoints[+0].lat" value="37.4419" type="Float"/>
                <set field="geoPoints[0].lon" value="-122.1419" type="Float"/>
                <set field="geoPoints[+1].lat" value="37.4819" type="Float"/>
                <set field="geoPoints[1].lon" value="-122.1519" type="Float"/>
                <set field="geoPoints[+2].lat" value="37.4719" type="Float"/>
                <set field="geoPoints[2].lon" value="-122.1319" type="Float"/>
                <set field="geoCenter.lat" value="37.4419" type="Float"/>
                <set field="geoCenter.lon" value="-122.1419" type="Float"/>

If I print the ${geoChart} in the geolocation.ftl I get the following:
[dataSourceId=GEOPT_GOOGLE, width=600, height=500,
points=[[lat=374419.0, lon=-1221419.0], [lat=374819.0,
lon=-1221519.0], [lat=374719.0, lon=-1221319.0]],
center=[lat=374419.0, lon=-1221419.0, zoom=13]]

where you can see all lat and lon are wrong due to a
mis-interpretation of the decimal "." in the set tag.
I tryed also to use the "BigDecimal" type instead of the "Float" (that
seems never used) but the issue is still present.
If I replace the "." with a "," in the set tag everything is OK.

My OFBiz server is running on a Windows machine with an Italian localizzation.
I did a search in the whole OFBiz codebase and never found a set tag
with a decimal constant different from 0.0 or 1.

Could be this an set tag bug?

Thank you,
Bruno

2010/1/24 Jacques Le Roux <[email protected]>:
> It works here. Also, when I did it intially, I took this into account see
>  GooglemapMarkers.js
>  GooglemapSimple.js
> Not directly related to your issue though...
>
> Jacques
>
> From: "Bruno Busco" <[email protected]>
>>
>> Oh yes...
>> ...it is becouse lat e lon use the decimal "." instead of a ",".
>>
>> At least this happens on my pc.
>>
>>
>> 2010/1/23 Bruno Busco <[email protected]>:
>>>
>>> I cannot understand why the geoLocalization examples at urls:
>>>
>>> https://localhost:8443/example/control/ExampleGeoLocationPointSet1
>>> https://localhost:8443/example/control/ExampleGeoLocationPointSet2
>>> https://localhost:8443/example/control/ExampleGeoLocationPointSet3
>>> https://localhost:8443/example/control/ExampleGeoLocationPointSet4
>>>
>>> do not show the google map.
>>> Any idea?
>>>
>>> -Bruno
>>>
>>
>
>

Reply via email to