vasturiano / globe.gl

UI component for Globe Data Visualization using ThreeJS/WebGL
https://vasturiano.github.io/globe.gl/example/world-population/
MIT License
2.06k stars 304 forks source link

Change objectsData typeface? #94

Open danman335 opened 2 years ago

danman335 commented 2 years ago

Hi, I've tried using labelTypeFace to update the labels that appear on hovering objects created as objectsData but this doesnt appear to work, do you know how to otherwise update these? Thanks

vasturiano commented 2 years ago

@danman335 are you referring to the method .labelTypeFace(...)? This method is specifically for the items in the labels layer, it won't affect the hovering text in any of the layers.

Those hover elements you can style by applying CSS rules to the .scene-tooltip class. This is the styling that gets applied by default: https://github.com/vasturiano/three-render-objects/blob/11aed198a29fbd8aaab68ac492e6ae35efbc701f/src/three-render-objects.css#L10-L19