Loading...
Important Notice - Forums is archived

To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

Product icon
TUTORIAL

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.

Unable to use image resources

Daniel Brown
5 years ago Sep 11, 2016 7:33pm
Daniel Brown
5 years ago Sep 11, 2016 9:06pm
Alejandro Duarte
5 years ago Sep 12, 2016 11:10am

You can put the files in any subdirectory inside src/main/webapp/VAADIN. For example:

And you can add a marker with something like this:

map.addMarker("DRAGGABLE: Name of the place", new LatLon(
                60.442423, 22.26044), true, "VAADIN/images/markers/marker.png");

 

Daniel Brown
5 years ago Sep 18, 2016 12:02am

For some reason I did not get the notification that this was answered.  

Obviously your solution fixed it.   

I appreciate your help.  And I just bought your book.  Thanks for writing it.  Great job on it. 

Regards, 

DB