_resource = resource;
}
public Icon getIcon(boolean isSelected) {
Icon icon = Icon.newInstance();
icon.setImageURL(_resource.getURL());
int w = _resource.getWidth();
int h = _resource.getHeight();
int w2 = w / 2;
int h2 = h / 2;
icon.setIconSize(Size.newInstance(w, h));
icon.setIconAnchor(Point.newInstance(w2, h2));
icon.setInfoWindowAnchor(Point.newInstance(w2, h2));
if (isSelected) {
// icon.setShadowURL(r.getImageSelectedStop().getUrl());
// icon.setShadowSize(Size.newInstance(22, 21));
}