wrld3d / ios-api

iOS API for WRLD: Stunning, Interactive 3D Maps
BSD 2-Clause "Simplified" License
19 stars 7 forks source link

marker.title #16

Open leftsider123 opened 7 years ago

leftsider123 commented 7 years ago

hi! thank you for your response very much! WRLDMarker* marker = [WRLDMarker markerAtCoordinate:CLLocationCoordinate2DMake(37.784560, -122.402092)]; // marker.title = @"This is a marker"; marker.title = @"这是个maker"; [_mapView addMarker:marker];

I find chinese is not allow! ead11efd-8a51-408d-84f3-d459ac7da9dc

jonty-dawson commented 7 years ago

Thanks for your request.

We do not currently support Chinese characters for Marker text display. This is because we create custom font resources for drawing text. Currently, the font resources that we package in the WRLD.framework include Latin characters and punctuation. See: https://github.com/wrld3d/ios-api/blob/master/resources/opensans_semibold_sdf.fnt https://github.com/wrld3d/ios-api/blob/master/resources/opensans_semibold_sdf_0.png

To support Chinese text, we would need to build additional font resources including the relevant Unicode characters. We have experimented with this previously, and Chinese text rendering seems to work fine - however, there is increased memory usage, because the font resources are significantly larger than those for only Latin characters.

We will need to consider how we could make this available in the SDK.