Package 

Class PolyOverlayWithIW

  • All Implemented Interfaces:
    org.osmdroid.views.util.constants.OverlayConstants

    
    public abstract class PolyOverlayWithIW
    extends OverlayWithIW
                        

    Repository of common methods for Polyline and Polygon

    • Method Detail

      • usePath

         void usePath(boolean pUsePath)
      • setGeodesic

         void setGeodesic(boolean geodesic)

        Sets whether to draw each segment of the line as a geodesic or not.Warning: it takes effect only if set before setting the points in the Polyline.

      • setInfoWindow

         void setInfoWindow(InfoWindow infoWindow)

        Set the InfoWindow to be used.Default is a BasicInfoWindow, with the layout named "bonuspack_bubble".You can use this method either to use your own layout, or to use your own sub-class of InfoWindow.If you don't want any InfoWindow to open, you can set it to null.

      • showInfoWindow

         void showInfoWindow()

        Show the infowindow, if any. It will be opened either at the latest location, if any,or to a default location computed by setDefaultInfoWindowLocation method.Note that you can manually set this location with: setInfoWindowLocation

      • onDetach

         void onDetach(MapView mapView)

        Override to perform clean up of resources before shutdown. By default does nothing.

      • setDowngradePixelSizes

         void setDowngradePixelSizes(int pPolySize, int pRectangleSize)
        Parameters:
        pPolySize - Size in pixels below which we will display an optimized list of segments
        pRectangleSize - Size in pixels below which we will display a mere rectangle (faster);supposed to be lower than pPolySize
      • contains

         boolean contains(MotionEvent pEvent)

        Used to be if Polygon Important note: this function returns correct results only if the Poly has been drawn before,and if the MapView positioning has not changed.

      • isCloseTo

         boolean isCloseTo(GeoPoint pPoint, double pTolerance, MapView pMapView)
        Parameters:
        pTolerance - in pixels