B4i Library [class]GoogleMapsExtra

Discussion in 'iOS Libraries' started by Erel, Aug 3, 2015.

Thread Status:
Not open for further replies.
  1. iCAB

    iCAB Well-Known Member Licensed User

    Thanks Erel,
    Amazing... I can't thank you enough.
     
  2. iCAB

    iCAB Well-Known Member Licensed User

    Hi All
    I am looking for the equivalent of:

    Code:
    GoogleMapsExtras.Snapshot
    as in B4A.

    Any help is greatly appreciated.
     
  3. Erel

    Erel Administrator Staff Member Licensed User

    Have you tried to draw it with Canvas.DrawView? Call it after the map is fully drawn. I haven't tested it myself.
     
  4. iCAB

    iCAB Well-Known Member Licensed User

    Canvas.DrawView works perfect
    Thanks a lot
     
  5. iCAB

    iCAB Well-Known Member Licensed User

    Hi all
    Does anyone know how to show/hide the traffic layer.

    Thanks in advance
     
  6. Erel

    Erel Administrator Staff Member Licensed User

    Please post questions in the questions forum.

    You can set the GoogleMap.TrafficEnabled property.
     
  7. iCAB

    iCAB Well-Known Member Licensed User

    Thanks Erel,
    Unbelievable I was so focused on GoogleMapsExtra (as this is what I used with B4A) to the point that forgot to check GoogleMaps :(
     
    Erel likes this.
  8. Christian Abate

    Christian Abate Member Licensed User

    Hi, I have some 3000 markers. is there a way to cluster markers?
     
  9. Erel

    Erel Administrator Staff Member Licensed User

    Currently no as cluster markers are not part of the SDK. It is included in a utility library that is not wrapped in B4i.
     
  10. Christian Abate

    Christian Abate Member Licensed User

    Thanks, is there any trick I can use to achieve it?
     
  11. Erel

    Erel Administrator Staff Member Licensed User

    I don't think so.
     
  12. Paul Leischow

    Paul Leischow Member Licensed User

    After upgrading to lastest B4I v4.00, the GoogleMapsExtra command AddCircle now returns an empty string.
    What am I missing?
     
  13. Erel

    Erel Administrator Staff Member Licensed User

    AddCircle doesn't return anything. It adds the circle to the map (see the code).
     
  14. Paul Leischow

    Paul Leischow Member Licensed User

    Oops... Right you are :)
    Turns out I modified the GoogleMapsExtra.bas file so AddCircle returned a value and when I updated to latest version I lost the Mod.

    Any chance we can have this SUB changed in the official file to make it more useful ??

    Public Sub AddCircle (Lat As Double, Lon As Double, Radius As Double, Color As Int) As NativeObject
    Dim circle As NativeObject = no.RunMethod("createCircle:::", Array(Lat, Lon, Radius))
    circle.SetField("map", gm)
    circle.SetField("strokeWidth", 5)
    circle.SetField("fillColor", circle.ColorToUIColor(Color))
    circle.SetField("strokeColor", circle.ColorToUIColor(Color))
    Return Circle
    End Sub
     
  15. Erel

    Erel Administrator Staff Member Licensed User

    I will add it.
     
  16. Erel

    Erel Administrator Staff Member Licensed User

    V2.10 released. See first post.
     
  17. chardenal

    chardenal Member Licensed User

    Hello,

    Is it possible to display a polygone "open" and no close? or maybe to display a single line?

    Thanks
     
  18. Erel

    Erel Administrator Staff Member Licensed User

    Please start a new thread for any question you have.
     
Thread Status:
Not open for further replies.
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice