|
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 |
|
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 <[hidden email]>: > 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 > |
|
Administrator
|
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" <[hidden email]> > 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 <[hidden email]>: >> 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 >> > |
|
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 <[hidden email]>: > 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" <[hidden email]> >> >> 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 <[hidden email]>: >>> >>> 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 >>> >> > > |
|
Hi Bruno,
I was the one transforming "," to ".". When using "," on my box, I've got nothing to display. But when using the geopoints which have ",", it's working... I'm running a Debian machine, with the French locale. When trying with other locales, I've still got the maps. But strangely, when switching back to French, it doesn't display the right place... Le 24/01/2010 08:37, Bruno Busco a écrit : ../.. -- Erwan de FERRIERES www.nereide.biz |
|
So it seems something related to the set tag itself with decimal constants.
As I said there is no decimal constant setting in the OFBiz codebase apart of 0.0 and 1. These values, if mis-interpreted as the ones in the geoLocation examples fall still on the same value so this could be why we did not see the bug before. -Bruno 2010/1/24 Erwan de FERRIERES <[hidden email]>: > Hi Bruno, > > I was the one transforming "," to ".". When using "," on my box, I've got > nothing to display. But when using the geopoints which have ",", it's > working... > > I'm running a Debian machine, with the French locale. When trying with other > locales, I've still got the maps. But strangely, when switching back to > French, it doesn't display the right place... > > Le 24/01/2010 08:37, Bruno Busco a écrit : > ../.. > > -- > Erwan de FERRIERES > www.nereide.biz > |
|
With the actual code it is *not* working on
https://demo.ofbiz.org/example/control/ExampleGeoLocationPointSet1 also. 2010/1/24 Bruno Busco <[hidden email]>: > So it seems something related to the set tag itself with decimal constants. > As I said there is no decimal constant setting in the OFBiz codebase > apart of 0.0 and 1. > These values, if mis-interpreted as the ones in the geoLocation > examples fall still on the same value so this could be why we did not > see the bug before. > > -Bruno > > 2010/1/24 Erwan de FERRIERES <[hidden email]>: >> Hi Bruno, >> >> I was the one transforming "," to ".". When using "," on my box, I've got >> nothing to display. But when using the geopoints which have ",", it's >> working... >> >> I'm running a Debian machine, with the French locale. When trying with other >> locales, I've still got the maps. But strangely, when switching back to >> French, it doesn't display the right place... >> >> Le 24/01/2010 08:37, Bruno Busco a écrit : >> ../.. >> >> -- >> Erwan de FERRIERES >> www.nereide.biz >> > |
|
Administrator
|
It works here (XP/FF3.6)
Jacques From: "Bruno Busco" <[hidden email]> > With the actual code it is *not* working on > https://demo.ofbiz.org/example/control/ExampleGeoLocationPointSet1 > also. > > 2010/1/24 Bruno Busco <[hidden email]>: >> So it seems something related to the set tag itself with decimal constants. >> As I said there is no decimal constant setting in the OFBiz codebase >> apart of 0.0 and 1. >> These values, if mis-interpreted as the ones in the geoLocation >> examples fall still on the same value so this could be why we did not >> see the bug before. >> >> -Bruno >> >> 2010/1/24 Erwan de FERRIERES <[hidden email]>: >>> Hi Bruno, >>> >>> I was the one transforming "," to ".". When using "," on my box, I've got >>> nothing to display. But when using the geopoints which have ",", it's >>> working... >>> >>> I'm running a Debian machine, with the French locale. When trying with other >>> locales, I've still got the maps. But strangely, when switching back to >>> French, it doesn't display the right place... >>> >>> Le 24/01/2010 08:37, Bruno Busco a écrit : >>> ../.. >>> >>> -- >>> Erwan de FERRIERES >>> www.nereide.biz >>> >> > |
|
Jacques,
you mean that the *demo* works ? 2010/1/24 Jacques Le Roux <[hidden email]>: > It works here (XP/FF3.6) > > Jacques > > From: "Bruno Busco" <[hidden email]> >> >> With the actual code it is *not* working on >> https://demo.ofbiz.org/example/control/ExampleGeoLocationPointSet1 >> also. >> >> 2010/1/24 Bruno Busco <[hidden email]>: >>> >>> So it seems something related to the set tag itself with decimal >>> constants. >>> As I said there is no decimal constant setting in the OFBiz codebase >>> apart of 0.0 and 1. >>> These values, if mis-interpreted as the ones in the geoLocation >>> examples fall still on the same value so this could be why we did not >>> see the bug before. >>> >>> -Bruno >>> >>> 2010/1/24 Erwan de FERRIERES <[hidden email]>: >>>> >>>> Hi Bruno, >>>> >>>> I was the one transforming "," to ".". When using "," on my box, I've >>>> got >>>> nothing to display. But when using the geopoints which have ",", it's >>>> working... >>>> >>>> I'm running a Debian machine, with the French locale. When trying with >>>> other >>>> locales, I've still got the maps. But strangely, when switching back to >>>> French, it doesn't display the right place... >>>> >>>> Le 24/01/2010 08:37, Bruno Busco a écrit : >>>> ../.. >>>> >>>> -- >>>> Erwan de FERRIERES >>>> www.nereide.biz >>>> >>> >> > > > |
|
Hi Bruno,
The demo is working, I've also got the maps. But when using French locale, the map is showing Santa Cruz, and using English locale, I've got Palo Alto, which is the good one to display. Le 24/01/2010 12:49, Bruno Busco a écrit : > Jacques, > you mean that the *demo* works ? ../.. -- Erwan de FERRIERES www.nereide.biz |
|
Administrator
|
Ha, I did not care about the positions... So it looks like it truncate the decimals, right?
Maybe useful: https://demo.ofbiz.org/partymgr/control/PartyGeoLocation?partyId=DemoCustomer is correct Jacques From: "Erwan de FERRIERES" <[hidden email]> > Hi Bruno, > > The demo is working, I've also got the maps. But when using French locale, the map is showing Santa Cruz, and using English > locale, I've got Palo Alto, which is the good one to display. > > Le 24/01/2010 12:49, Bruno Busco a écrit : >> Jacques, >> you mean that the *demo* works ? > ../.. > > -- > Erwan de FERRIERES > www.nereide.biz > |
| Free forum by Nabble | Edit this page |
