Points misplaced on maps

Bug #1306403 reported by Juan José Gómez (www.ingeos.es)
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Geospatial Addons for OpenERP
Confirmed
Undecided
Unassigned

Bug Description

I'm testing geoengine modules for OpenERP 6.1. I've installed the modules base_geoengine , geoengine_geoname_geocoder , geoengine_partner and geonegine_sale.

If I run OpenERP from a web browser, I go to Sales - > Address Book - > Customers and I click on the geoengine view, I can see the map with the points corresponding to the addresses of the customers but all the points are drawn about 1 or 1.5 cm above their real position. Curiously, if I maximize or restore the window of the web browser, the points are placed in the correct position. If I change again OpenERP view to another model form (products for example) and then I return back to this same view (customers geoengine view) I can see again the points poorly placed until I change again the size of the web browser.

I've tested several browsers and they all have provoked the same result: Chrome, Opera, Firefox, Internet Explorer.

Revision history for this message
Nicolas Bessi - Camptocamp (nbessi-c2c-deactivatedaccount) wrote :

Hello,

Sorry for the long delay.

I have tried to replicate the bug here but was not able to reproduce it.

Can you please send us information about your browser. Have you also changed background of the Map to Google map.
There is know problem with last version of google map API as they tend to prevent embedding their map found.

Regards

Nicolas

Revision history for this message
Juan José Gómez (www.ingeos.es) (jjgomez+) wrote : RE: [Bug 1306403] Re: Points misplaced on maps

Hello Nicolas,

This is the configuration of my work environment:

SERVER:
Ubuntu 12.04
Python 2.7
Postgresql 9.1
Other tools for geoengine:
 gdal 1.10.1 (downloaded)
 geos 3.4.2 (downloaded)
 geojson 1.0.1 (sudo pip install geojson)
 postgis 1.5.8 (downloaded)
Firefox 28.0 -> I can see de same problem into the server with this browser.

CLIENT:
Windows 7 Professional Service Pack 1.
Web browsers:
 Google Chrome 34
 Internet Explorer 11
 Firefox 28
 Opera 12

I can see the bug in all client browsers. The problem seems to be into the server: some library, application, ...

I attach screen captures of Chrome web browser.

Regards,

Juanjo

-----Mensaje original-----
De: <email address hidden> [mailto:<email address hidden>] En nombre de Nicolas Bessi - Camptocamp
Enviado el: lunes, 12 de mayo de 2014 9:30
Para: <email address hidden>
Asunto: [Bug 1306403] Re: Points misplaced on maps

Hello,

Sorry for the long delay.

I have tried to replicate the bug here but was not able to reproduce it.

Can you please send us information about your browser. Have you also changed background of the Map to Google map.
There is know problem with last version of google map API as they tend to prevent embedding their map found.

Regards

Nicolas

--
You received this bug notification because you are subscribed to the bug report.
https://bugs.launchpad.net/bugs/1306403

Title:
  Points misplaced on maps

Status in Geospatial Addons for OpenERP:
  New

Bug description:
  I'm testing geoengine modules for OpenERP 6.1. I've installed the
  modules base_geoengine , geoengine_geoname_geocoder ,
  geoengine_partner and geonegine_sale.

  If I run OpenERP from a web browser, I go to Sales - > Address Book -
  > Customers and I click on the geoengine view, I can see the map with
  the points corresponding to the addresses of the customers but all the
  points are drawn about 1 or 1.5 cm above their real position.
  Curiously, if I maximize or restore the window of the web browser, the
  points are placed in the correct position. If I change again OpenERP
  view to another model form (products for example) and then I return
  back to this same view (customers geoengine view) I can see again the
  points poorly placed until I change again the size of the web browser.

  I've tested several browsers and they all have provoked the same
  result: Chrome, Opera, Firefox, Internet Explorer.

To manage notifications about this bug go to:
https://bugs.launchpad.net/geospatial-addons/+bug/1306403/+subscriptions

Revision history for this message
Juan José Gómez (www.ingeos.es) (jjgomez+) wrote :

Any news about this issue?

Revision history for this message
Fekete Mihai (fekete-mihai) wrote :

I had the same bug, i removed the map animate line from geoengine_view.js and everything is ok...for me the position was changing even on zoom...

Revision history for this message
Juan José Gómez (www.ingeos.es) (jjgomez+) wrote :

Thank you very much Fekete. It seems works for me too.

Nicolas: Is this the best solution? Can there be another problem if we remove this line from the code?

Thanks in advance.

Juanjo

-----Mensaje original-----
De: <email address hidden> [mailto:<email address hidden>] En nombre de Fekete Mihai
Enviado el: jueves, 26 de junio de 2014 6:43
Para: <email address hidden>
Asunto: [Bug 1306403] Re: Points misplaced on maps

I had the same bug, i removed the map animate line from geoengine_view.js and everything is ok...for me the position was changing even on zoom...

Revision history for this message
Nicolas Bessi - Camptocamp (nbessi-c2c-deactivatedaccount) wrote :

Hello,

I'm going to ask F. Junod advice but form me it seems ok at first glance.

Regards

Nicolas

Revision history for this message
Nicolas Bessi - Camptocamp (nbessi-c2c-deactivatedaccount) wrote :

Ok I double check.

The animate was a trick for cross browser compatibility.
In order to show itself properly the map has to know precisely his div dimentions.
But on some browsers this info was not available a frame initialization so we trigger a div size change in order
to refresh dom values. But with latedt version of map API it causes some placement trouble.

We have to find a more robust fix, to ensure compatibility with older version of browser.

Regards

Nicolas

Changed in geospatial-addons:
status: New → Confirmed
Revision history for this message
Juan José Gómez (www.ingeos.es) (jjgomez+) wrote :

Ok Nicolas.

Regards,

Juanjo

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.