Quantcast
Channel: 🎛️ Dash - Plotly Community Forum
Viewing all articles
Browse latest Browse all 6271

Dash on Dataiku, dashExtensions.default.function0, assign error

$
0
0

Hi,

I developed a dash WebApp locally on my computer and it works beautifuly. I got a map (dash-leaflet) in the App which displays different icons. These icons are sourced from url using the assign function from dash_extensions.

icon=assign("""function(feature, latlng){
const flag = L.icon({iconUrl: 'https://raw.githubusercontent.com/pointhi/leaflet-color-markers/master/img/marker-icon-2x-red.png', iconSize: [15, 20]});
return L.marker(latlng, {icon: flag});
}""")

and then

marker=dl.GeoJSON(data=data,id='marker',options=dict(pointToLayer=icon))

When deploying the app on Dataiku, I am struggling to access the png resource and I got the following message when inspecting the Webpage.

From my understanding dashExtensions.default.function0 is the object stored in icon variable from the assign function.

I got 2 questions from here:

  1. Is the current issue on Dataiku server side?
  2. Is there any other way to custom icon for GeoJSON objects? (by loading images directly in the App for instance?)

Regards

4 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 6271

Trending Articles