branflake2267 / GWT-Maps-V3-Api

GWT Maps V3 Javascript Bindings
Other
144 stars 113 forks source link

Add updates from Maps V3.10 API Release #59

Open twistedpair opened 11 years ago

twistedpair commented 11 years ago

v3.10 goes from Experimental to release on Nov 15th. Need to have it's changes/features ready close to then.

See official change log

branflake2267 commented 11 years ago

I'll aim to put some more time in upcoming here to help get some of the code in. :)

twistedpair commented 11 years ago

Needs to start by pulling up current trunk into v3.9 branch. Finishing the 3.9 branch, and then branching v3.10 off there. Just note here whatever you are up to so we don't work against each other.

branflake2267 commented 11 years ago

Good point. I'll keep in touch to what I aim for.

branflake2267 commented 11 years ago

Do you have a reason why this issue has the label wontfix?

twistedpair commented 11 years ago

I didn't label it won't fix. I'm not sure what you mean.

branflake2267 commented 11 years ago

Must of been an accident, I removed it yesterday :)

branflake2267 commented 11 years ago

https://plus.google.com/communities/105780740892495987648

twistedpair commented 11 years ago

Funny thing is 3.10 had a bunch in it. From what I can tell 3.11 had nothing but optimizations and bug fixes, so that should be trivial for us.

branflake2267 commented 11 years ago

That is very exciting to me :)

wikiro commented 10 years ago

I created some object but i dont know is they all are right

public class IconSequence extends JavaScriptObject {
    protected IconSequence() {}

    public final static IconSequence newInstance() {
        return JavaScriptObject.createObject().cast();
    }

    public final native void setStreetViewControl(boolean fixedRotation) /*-{
        this.fixedRotation = fixedRotation;
    }-*/;

    public final native boolean getFixedRotation() /*-{
        return this.fixedRotation;
    }-*/;

    public final native void setOffset(String offset) /*-{
        this.offset = offset;
    }-*/;

    public final native String getOffset() /*-{
        return this.offset;
    }-*/;

    public final native void setRepeat(String repeat) /*-{
        this.repeat = repeat;
    }-*/;

    public final native String getRepeat() /*-{
        return this.repeat;
    }-*/;
}

public enum SymbolPath {
    BACKWARD_CLOSED_ARROW,
    BACKWARD_OPEN_ARROW,
    CIRCLE,
    FORWARD_CLOSED_ARROW,
    FORWARD_OPEN_ARROW;

    public String value() {
        return name();
    }

    public static SymbolPath fromValue(String type) {
        return valueOf(type.toUpperCase());
    }

    @Override
    public String toString() {
        return name().toLowerCase();
    }
}

class PolylineOptions {

//    public final void setIcons(IconSequence... icons) {
//        JsArray<IconSequence> arr = ArrayHelper.toJsArray(icons);
//        setIconsJs(arr);
//    }
//
//    private final native void setIconsJs(JsArray<IconSequence> icons) /*-{
//        this.icons = icons;
//    }-*/;
//
//    public final IconSequence[] getIcons() {
//        JsArray<IconSequence> arr = getIconsJs();
//        if (arr == null || arr.length() == 0) {
//            return null;
//        }
//        IconSequence[] r = new IconSequence[arr.length()];
//        for (int i = 0; i < arr.length(); i++) {
//            r[i] = arr.get(i);
//        }
//        return r;
//    }
//
//    private final native JsArray<IconSequence> getIconsJs() /*-{
//        return this.icons;
//    }-*/;
}