-
Notifications
You must be signed in to change notification settings - Fork 230
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
Use of font awesome in vl-style-text #11
Comments
Hi! <vl-style-box>
<vl-style-text font="16px FontAwesome" text="\uf041">
<vl-style-fill color="#2355af" />
<vl-style-stroke color="white" />
</vl-style-text>
</vl-style-box> |
Hi, Thank you for your quick answer. https://i.imgur.com/tpI1cvP.png But when I use a computed value for the text : In this case this works perfectly: https://i.imgur.com/FZKmgIH.png My knowledge of Vue.js is too limited to see exactly the difference but I suppose that using a computed value prevent the unicode character to be interpreted as a string. Your work is really interesting and it shows me how a real quality vue.js code should look like. Thanks François |
You are right, it's Vue template compiling issue (https://vuejs.org/v2/guide/components.html#Literal-vs-Dynamic).. <vl-style-box>
<vl-style-text font="16px FontAwesome" :text="'\uf041'">
<vl-style-fill color="#2355af" />
<vl-style-stroke color="white" />
</vl-style-text>
</vl-style-box> |
Hi,
I'd like to use and font awesome to style point feature as it usually works fine in a classical javascript method.
My code is like that:
But, on the map, it just displays the text \uf041 instead of the icon. On other part of my application fontAwesome is correctly loaded.
I've searched for the correct syntaxt without founding anything.
If someone has got an idea, I'd be grateful
François
The text was updated successfully, but these errors were encountered: