PDA

View Full Version : When a pin is clicked from over the map, can I edit how text shows in the balloon?



icefire
02.12.2014, 11:01
When a pin is clicked from over the map, can I edit how text shows in the info-balloon?

By default it seems to have an icon on the left; and only one line of text on it's right side. Can it be changed to two or more lines using the SDK?

icefire
02.12.2014, 12:26
1717

This is how the map currently looks in our implementation. Can it be made so that we'd have the text on two rows; showing the full name, using the SDK?

Adela_Silvia
02.12.2014, 13:34
Hello,

Yes, it's possible.
For achieving this you have to use the SKAnnotation class (http://developer.skobbler.com/docs/ios/2.3.0/Classes/SKCalloutView.html) that supports generic UIView (the annotationView property) and you can define your own custom UILabels (https://developer.apple.com/library/ios/documentation/Uikit/reference/UILabel_Class/index.html)

icefire
02.12.2014, 14:04
Thanks! Greatness!