12-27-2015 02:10 PM
Hello,
I registered a custom svg icon, which works fine. Now I want to set it's color but this does not work. How must a custom icon look like to get the color attribute working?
Thanks,
/Mathias
Solved! Go to Solution.
02-26-2016 02:57 PM
It comes our FF don’t support ’style.addRule’.I did some modification and now it works well with Firefox.
Here is latest build : https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/org/opendaylight/next/next/0.10.0-SNAPSHOT/next-0.10.0-20160226.225238-2.zip
01-16-2016 01:37 PM
No ideas?
Thanks,
/Mathias
02-17-2016 05:24 PM
NeXt don't support set color to custom icons.
But there is another way around, in the latest version NeXt support customized font icon. You can use put your icons into a font and register that font to NeXt. Then you can set color to those icons.
Latest version : http://www.next-ui.com/download/next_0.9.zip
Sample Code : http://jsfiddle.net/nextsupport/23mcp940/
Abu
02-18-2016 12:40 PM
Hi Abu,
for some reason it does not work with Firefox, IE11 and Microsoft Edge. I only got it working with Chrome. Could you please take a look into it?
Thanks,
Mathias
02-26-2016 02:57 PM
It comes our FF don’t support ’style.addRule’.I did some modification and now it works well with Firefox.
Here is latest build : https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/org/opendaylight/next/next/0.10.0-SNAPSHOT/next-0.10.0-20160226.225238-2.zip
02-29-2016 11:44 AM
Hi Abu,
thank you again, but for some reason now no custom icons are displayed at all. The map is drawn but without the custom icons. This applies for Crome and FF.
EDIT: I found the problem - I set the wrong color ;(
Thanks,
Mathias
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide