Pixate / pixate-freestyle-ios

Pixate Freestyle for iOS
Apache License 2.0
848 stars 134 forks source link

Map callout popover can not be configured #53

Open angelolloqui opened 10 years ago

angelolloqui commented 10 years ago

In map views, we can easily customize the annotations as explained here: http://www.pixate.com/blog/2012-12-16-mapview-annotations/

However, the callout can not be customized so easily. Basically, what I need is a way to specify different fonts for the title and the subtitle. I have tried this code:

map-view label {
    font-family: $font-regular;
}

This changes the fonts, but both of them. Any idea how can I change them separately? also, the legal attribution label of the map is changed, which is probably not a good idea.

Thanks!

angelolloqui commented 10 years ago

If someone wants a hack for this, I made it work for now (could break in future) by using sibling combinators:

map-view label {
    font-family: $font-bold;
}

map-view label + label {
    font-family: $font-regular;
}