B4J Question jGoogleMaps & AddPolyline error?

Arnaud

Active Member
Licensed User
Longtime User
Hello,

I use the library jGoogleMap 1.82 and AddPolyline function. It works fine on some Windows 10 and not on some other Windows 10, I don t understand why. Please find the screenshot and see the difference between the 2 result, one correct and 1 not correct.

The Polyline has segments and it is not placed correctly, there is also a few shift with the map of Google.

I use also the "marker", the marker works fine on the both Windows.

Thanks for your help.
 

Attachments

  • google map and AddPolyline not OK .jpeg
    google map and AddPolyline not OK .jpeg
    225.9 KB · Views: 120
  • google map and AddPolyline OK.png
    google map and AddPolyline OK.png
    322.1 KB · Views: 121

Arnaud

Active Member
Licensed User
Longtime User
The resolution is 1920 x 1080.

The size of the list in the polyline is 2177 points, each point contains the polar coordinates with 6 number after the decimal :


exemple :
coordinate:
Private coordinate  As LatLng
coordinate .Initialize(50.888789,6.614651)       

list_for_polyline.add(coordinate,.......)

Thanks for your replies.
 
Upvote 0

Omar Parra A.

Expert
Licensed User
Longtime User
test;

GoogleMapsDemo.zip
 
Upvote 0

Arnaud

Active Member
Licensed User
Longtime User
Hello,


Sorry for the delay. I have had news. I have done test with the GoogleMapDemoLight program and same problem.

1 - I draw 4 line with the mouse, no problem (picture in attachment "polyline creation.png")
2 - I valid and finish the polyline by a right click on the mouse ---> the error appear (picture in attachment "square finished.png")
3 - If I change the zoom the error change and move, and with a zoom far away, I can see my square


Here a link with the video and the problem when I change the zoom
http://alfanovisualdata.com/download/PROTOTYPE2/polyline error.mp4
 

Attachments

  • polyline creation.png
    polyline creation.png
    175.5 KB · Views: 91
  • square finished.png
    square finished.png
    164.7 KB · Views: 91
  • zoom far away .png
    zoom far away .png
    177.6 KB · Views: 88
Upvote 0

klaus

Expert
Licensed User
Longtime User
I hadn't used the GoogleMapDemo programs for quite some time.
Tested it again, and I see the same problem.
Testing further, I found that the problem is the text size set in Windows.
I use, by default, 125%.
Setting the text size to 100% it works as expected.
When I wrote the GoogleMapsDemo programs I already used 125% text size, and it was with Windows 10. So, I do not know what has changed.
I think that Erel needs to look at this.
 
Upvote 0

Arnaud

Active Member
Licensed User
Longtime User
Yes I have tested and it works fine.

Is there a way to update the jgooglemap libray polyline directly in function of the font size of Windows?

It is difficult to ask at the customer to change his font size...
 
Upvote 0

klaus

Expert
Licensed User
Longtime User
As written in my post #8: I think that Erel needs to look at this.
Only Erel can do something, he has written the jGoogleMaps library or a wrapper.
 
Upvote 0

klaus

Expert
Licensed User
Longtime User
Unfortunately, that is what I suspected.
The strange thing is that when I wrote the GoogleMapsDemo programs I already used 125% text size, and it was with Windows 10.
I just made another test and found that it works well with Java 8 but not with Java 11.
 
Upvote 0
Top