public Map getSource() { JSObject object = getSourceJSObject(); return (object != null) ? Map.narrowToMap(object) : null; }
public Map getSource(){ JSObject object = getSourceJSObject(); return (object!=null)?Map.narrowToMap(object):null; }
/** * The overview map control has a reference to a {@link org.gwtopenmaps.openlayers.client.Map} instance, * which is the actual overview map. * * @return map - instance of {@link org.gwtopenmaps.openlayers.client.Map} * map will be null if the control is not added to any map yet */ public Map getOverviewMap(){ return Map.narrowToMap(getJSObject().getProperty("ovmap")); }
/** * get the map to which this control is attached * * @return the map */ public Map getMap() { return Map.narrowToMap(this.getJSObject().getProperty("map")); }
/** * get the map to which this control is attached * * @return the map */ public Map getMap() { return Map.narrowToMap(this.getJSObject().getProperty("map")); }
/** * The overview map control has a reference to a {@link org.gwtopenmaps.openlayers.client.Map} instance, * which is the actual overview map. * * @return map - instance of {@link org.gwtopenmaps.openlayers.client.Map} * map will be null if the control is not added to any map yet */ public Map getOverviewMap() { return Map.narrowToMap(getJSObject().getProperty("ovmap")); }
/** * * @param input * * @return {@link Map} map */ @Override public Map read(String input) { if (this.wmcOptions == null) { throw new IllegalStateException("The property wmcOptions must not " + "be null."); } Map map = Map.narrowToMap(FormatImpl.read(getJSObject(), input, this.wmcOptions.getJSObject())); return map; }
/** * * @param input * @param wmcOptions * @return map object */ public Map read(String input, WMCOptions wmcOptions){ Map map = Map.narrowToMap(FormatImpl.read(getJSObject(), input, wmcOptions.getJSObject())); return map; }
public LonLat getLonLat(){ Map map = Map.narrowToMap(this.getSourceJSObject()); Pixel pixel = Pixel.narrowToPixel(getJSObject().getProperty("xy")); return (pixel != null)? map.getLonLatFromPixel(pixel):null; } }
public LonLat getLonLat() { Map map = Map.narrowToMap(this.getSourceJSObject()); Pixel pixel = Pixel.narrowToPixel(getJSObject().getProperty("xy")); return (pixel != null) ? map.getLonLatFromPixel(pixel) : null; }