/** * Method: setIcon * Change the icon image. * icon (Icon) the image of icon */ public void setIcon(Icon icon){ MarkerImpl.setIcon(getJSObject(),icon.getJSObject()); } /**
/** * @return LonLat - the coordinates of the center */ public LonLat getCenter(){ return new LonLat(MapImpl.getCenter(getJSObject())); }
/** * Method setLonlat * Change the lonlat of Icon * lonlat (LonLat) the position of this marker */ public void setLonLat(LonLat lonlat){ MarkerImpl.setLonLat(getJSObject(),lonlat.getJSObject()); } /**
private void initializeDefaultMapOptions() { defaultMapOptions.setMaxResolutionToAuto(); defaultMapOptions.setNumZoomLevels(18); defaultMapOptions.setUnits(MapUnits.DEGREES); defaultMapOptions.setDisplayProjection(new Projection(DISPLAY_PROJECTION)); }
public Bounds transform(Projection source, Projection dest) { return Bounds.narrowToBounds(BoundsImpl.transform(getJSObject(), source.getJSObject(), dest.getJSObject())); }
/** * @param size - size of the icon image */ //this method is private in OpenLayers, but also used // by the OpenLayers markerResize example, it seems it should be public public void setSize(Size size){ IconImpl.setSize(getJSObject(), size.getJSObject()); }
/** * * @return the center of the bounds in map space */ public LonLat getCenterLonLat() { return LonLat.narrowToLonLat(BoundsImpl.getCenterLonLat( this.getJSObject())); }
/** * @return the size of the box */ public Size getSize() { return Size.narrowToSize(BoundsImpl.getSize(getJSObject())); }
/** * @return the center of the bounds in pixel space */ public Pixel getCenterPixel() { return Pixel.narrowToPixel(BoundsImpl.getCenterPixel(this.getJSObject())); }
/** Fill opacity (0-1). */ public double getFillOpacity() { double o = StyleImpl.getFillOpacity(getJSObject()); return o; }
/** * Hex stroke color. Default is '#ee9900'. * * @param c * - see setFillColor */ public void setStrokeColor(String c) { StyleImpl.setStrokeColor(getJSObject(), c); }
/** * The height of the background graphic. If not provided, the graphicHeight * will be used. */ public void setBackgroundHeight(int backgroundHeight) { StyleImpl.setBackgroundHeight(getJSObject(), backgroundHeight); }
/** * Vertical Label alignment. This specifies the insertion point relative to * the text. */ public String getLabelAlign() { return StyleImpl.getLabelAlign(this.getJSObject()); }
/** * Tooltip for an external graphic. Only supported in Firefox and Internet * Explorer. */ public String getGraphicTitle() { return StyleImpl.getGraphicTitle(this.getJSObject()); } }
/** * @param significantDigits - Number of significant digits in the bbox coordinates, * pass null to use the default of 6. * @return String - simple string representation of a Bounds object. For example: * "5,42,10,45" */ public String toBBox(Integer significantDigits){ return BoundsImpl.toBBox(getJSObject(), significantDigits); }
/** * @param url - url for the icon image */ //private in OpenLayers, but it seems it should be public public void setUrl(String url){ IconImpl.setUrl(getJSObject(), url); } }
/** * Named graphic to use when rendering points. Supported values include * 'circle' (default), 'square', 'star', 'x', 'cross', 'triangle'. */ public String getGraphicName() { return StyleImpl.getGraphicName(this.getJSObject()); }
/** * @return double - lower left y-coordinate of bounds */ public double getLowerLeftY(){ return BoundsImpl.getMinY(getJSObject()); }
/** * @return double - upper right x-coordinate of bounds */ public double getUpperRightX(){ return BoundsImpl.getMaxX(getJSObject()); }
/** * @param size - size of the icon image */ //this method is private in OpenLayers, but also used // by the OpenLayers markerResize example, it seems it should be public public void setSize(Size size){ IconImpl.setSize(getJSObject(), size.getJSObject()); }