SupersetOdT commented on issue #34621:
URL: https://github.com/apache/superset/issues/34621#issuecomment-3393472158

   @JoshuaJADaniel 
   
   
   
   It’s true that the JS code area can perfectly meet the customization 
requirements by point: we could also have a 'label_type' property in the 
geojson in which we would find values 'river', 'municipality', 'motorway'... 
and for each of these values, we would assign CSS/html tags in JavaScript. For 
example, with "municipality":
   
   ` <div style="
         background-color: white;
         color: #666;
         padding: 10px;
         border-radius: 8px;
         border: 1px solid #ddd;
         margin: -10px;
       ">
         <b><span style="color: #333;">${municipality}</span></b><br>
       </div>`
   
   > "To address this, we could add a few basic controls to the UI that covers 
the basic use cases, and we let the JS code box act as a sort of "escape hatch" 
for more complicated use cases. What do you think of this idea?"
   
   Your idea is really excellent and satisfies both low-code users and those 
who wish to customize a more advanced display.
   
   (Note that for the tooltips, Superset offers a 2nd field titled "Extra data 
for JS" which allows the tooltips to display values from any field in the table 
(not just the properties integrated into the geojson).)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to