-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Change the pictogramm of the cadastrapp plugin #175
Comments
FA v 4.7 seems correct. https://github.com/georchestra/mapstore2-cadastrapp/blob/master/index.html#L88 |
For Urbanisme plugin : yes. But for me here (cadastrapp) it is the glyphicon library which i used I think. Could you confirm that @Gaetanbrl ? |
not certain about that, from my understanding glyphicon is used.. but the current icon doesnt match any of https://getbootstrap.com/docs/3.4/components/. if i get it right, the glyph currently used is referenced in 3 places:
i think FA is used for other icons.. |
Hi. The icons reflect this set of svg files. Font-awsome is included to give support for icons in annotations. Is not used for buttons, so you may need use an element like the following: <i className={`fa fa-university`}/> and you may need to customize also Note: I'm away this week for FOSS4G (and tobia is out too for annual leave). |
Well if we want to do that in a clean way we need to create a custom SVG file and host it in mapstore2 But as it is a plugin svg file : where to store it in the plugin repository ? Is it possible to "call" it in the code ? |
Here is a nice SVG icon : https://www.onlinewebfonts.com/icon/425559 It's free, If I understand we just have to credit them in the README for the icon. |
From MapStoreExtension repo :
...And from the doc :
So, i guess we can insert a new custom content (as PNG icon) in assets or /js/extension folder. Next, the new icon could be called as classic file with something like :
(Not sur about the correct syntax but not so far ?) |
this works. 1. add SVG to /js/sxtension/assets ... to get a full path like 2. import SVG
3. use it as Icon
4. See the result |
@MaelREBOUX @offtherailz in recent extension template (v2023) we can't use icon anymore. I'd also tried this notation and the result is the same (not works) :
Test :
|
This code works with React import (wrong copy/past)
|
What do you think about this cadastrapp new icon (offer by @Agath21) @landryb @pierrejego @MaelREBOUX @jusabatier ? |
cc @MarieSuet |
Thank you @Gaetanbrl ! I think the first icon is good, but maybe it's missing a little something... add some plots to the layers under the house, if possible ? example (vertically): |
I don't have any preference. |
@MarieSuet Good idea, like that ? I removed a layer to avoid overloading icon. |
Thanks @Agath21, |
Thank you, yes, I think it's very good like that, more meaningful (but it's only my opinion) ! |
In PR here |
We need to change the icon which appears in the side bar. The current is not appropriate.
But we don't understand which version of the glyphicons library is used.
Any idea @offtherailz @Gaetanbrl
To link to sigrennesmetropole/geor_urbanisme_mapstore#59
The text was updated successfully, but these errors were encountered: