I'm using Oracle Mapviewer. I want to switch mouse pointer from default to crosshair when user enters "Interactive mode". I'm developing in GWT and tried do do something like this:

public static void setCursorCrosshair() {

But it changes mouse pointer only in few parts of map, it looks like it omits map tiles and change cursor to crosshair on FOI's that I've added just before. How can I make it to display crosshair over the whole map?

1 Answer 1


I've figured this out. I had to grab all children nodes of mapWidget with name "img" and having string "gettile" in "src" attribute, then change theirs style as well as in case of MapWidget. This way you can change stylesheet only for the map and map tiles and leave other images alone (such as map zoom bar, navigator, scale line, ect...).

XDOM is a class from Sencha GXT, but you can use anything other to find and iterate through nodes.

NodeList<Element> elements = XDOM.getElementById("mapViewWidget").getElementsByTagName("img");
    for (int i = 0; i < elements.getLength(); i++) {
        if (elements.getItem(i).getAttribute("src").indexOf("gettile") != -1)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.