iOS Question b4i xsd_openmaps PolygonClick never called

Davisbc

Member
Licensed User
Directly from the demo program. I added the log line to track if polygon was selected. it never was selected.

B4X:
Private Sub OMaps_PolygonClick (SelectedPolygon As MapPolygon)
    ResetObjPanel
    LabelType.Text="Polygon"
    ObjSelected=SelectedPolygon
    
    Log ("Polygon Click")
    
    wait for (SelectedPolygon.GetPoints) COMPLETE(Points As List)
    LabelInfo.Text=$"Points: ${Points.Size}"$
End Sub
 

Star-Dust

Expert
Licensed User
Longtime User
I did some tests and it works correctly, check that you don't have too high a zoom and therefore interpreting the position on the screen with a GPS could give unexpected results.

Another consideration if it is off center, you can correct an off center with the EditConfigure(offset,Tollerance) method. Standard offset is 0 and Tolerance is 15
 
Upvote 0

Davisbc

Member
Licensed User
Thanks for checking. When i had the issue using b4j trying to do editing, i found that it only worked at certain zoom levels. It still had offset issues, but still worked great.

I found that using the b4i version every method that uses a "wait for" has issues. If i add a marker using the marker2 (with a file URI), i only get a single marker even if the software sent 6 marker2 requests. I was going to suggest maybe a marker2a method where instead of a url for the icon, that you send a bitmap similar to the google maps version. i was trying to create a transparent icon to emulate a hotspot.

I noticed there is a 10.1 version of the software. i added the framework to the local mac, but i did not see any update to add to b4i. Perhaps that's my problem.

I have other questions but i don't want to muddy this email.

Thank again for creating this great software,
B
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…