chellymehdi / vopenlayers

Automatically exported from code.google.com/p/vopenlayers
0 stars 0 forks source link

Problem with setting marker icon with Resource. #48

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.
2.
3.

What is the expected output? What do you see instead?
I am trying to set the marker icon from an image in my theme like this
 marker.setIcon(new ThemeResource("images/balloonmarkerorange.png"),60, 20); But it doesnot show in the map after map is loaded.

Am i missing something?

What version of the product are you using? On what operating system?

Please provide any additional information below.

Original issue reported on code.google.com by santoshi...@gmail.com on 11 Jan 2012 at 9:51

GoogleCodeExporter commented 9 years ago
Do you have the icon in you theme folder? Have you tried if the icon works with 
e.g. plain Label component?

Additionally you could use Firebug to inspect the generated marker and check 
what makes the url bad.

Original comment by ma...@vaadin.com on 5 Mar 2012 at 8:26