How do you show the scale bar in MapBox for iOS? -


would show scale bar on map. how can this? not ready yet? here code:

    let hi = mapview.scalebar     hi.frame = cgrect(x: 0, y: (mapview.frame.size.height / 2), width: 100, height: 50)     mapview.addsubview(hi) 

this code in viewdidload. map working great, no scale bar.

in swift:

mapview.scalebar.ishidden = false 

Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -