Commit 54f16d4
authored
Make id generation customizable (#203)
Branca/folium uses random numbers to generate ids. This has some
disadvantages. E.g. in the streamlit-folium plugin they have to
replace the random ids with predictable ids for comparison between
streamlit runs.
Also, in the folium tests, we have to normalize the variable names
to compare between expected and actual results. This change in Branca
makes it possible to override or customize id generation. This allows
client libraries to experiment with new id generation schemes.1 parent 12c4885 commit 54f16d4
1 file changed
+5
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
61 | | - | |
| 61 | + | |
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
72 | 76 | | |
73 | 77 | | |
74 | 78 | | |
| |||
0 commit comments