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

python - Operations inside variables -

Generic Map Parameter java -

arrays - What causes a java.lang.ArrayIndexOutOfBoundsException and how do I prevent it? -