VolkovLabs / business-text

The Business Text panel plugin allows you to construct a text visualization template from the values of a dataset returned by a data source query.
https://volkovlabs.io
Apache License 2.0
83 stars 13 forks source link

Grafana\Building Mapbox using Business Text #367

Closed FatimaChahrour closed 1 month ago

FatimaChahrour commented 1 month ago

Hello,

Can you please help/guide me in building a simple mapbox using the Business Text?

Thanks, Fatima

mikhail-vl commented 1 month ago

@FatimaChahrour You can find Mapbox example in the documentation: https://volkovlabs.io/plugins/business-text/external/#mapbox-gl

FatimaChahrour commented 1 month ago

Thank you mikhail... Is it possible to also add the draw tool too? how?

mikhail-vl commented 1 month ago

@FatimaChahrour You can do anything supported in the Mapbox API and any other JS library by importing them. Dynamic Text panel has not limitations.

Please read documentation and watch YouTube tutorials to get familiar with the panel functionality.

FatimaChahrour commented 1 month ago

I am able to apply the needed controls on normal VC code, yet when it comes to Business Text it is raising error: Error loading Mapbox Geocoder: TypeError: MapboxGeocoder is not a constructor

mikhail-vl commented 1 month ago

@FatimaChahrour mapbox-gl-geocoder should imported similar to mapbox-gl.

FatimaChahrour commented 1 month ago

That's where I need help, the mapbox-gl is loading successfully but any other css like geocoder or draw is not; attached screenshot for reference. BTconfig_Error