Package apple.mapkit

Class MKTileOverlay

  • All Implemented Interfaces:
    MKAnnotation, MKOverlay, NSObject

    public class MKTileOverlay
    extends NSObject
    implements MKOverlay
    MKTileOverlay represents a data source for raster image tiles in the spherical mercator projection (EPSG:3857).
    • Constructor Detail

      • MKTileOverlay

        protected MKTileOverlay​(org.moe.natj.general.Pointer peer)
    • Method Detail

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • allocWithZone

        public static java.lang.Object allocWithZone​(org.moe.natj.general.ptr.VoidPtr zone)
      • automaticallyNotifiesObserversForKey

        public static boolean automaticallyNotifiesObserversForKey​(java.lang.String key)
      • cancelPreviousPerformRequestsWithTarget

        public static void cancelPreviousPerformRequestsWithTarget​(java.lang.Object aTarget)
      • cancelPreviousPerformRequestsWithTargetSelectorObject

        public static void cancelPreviousPerformRequestsWithTargetSelectorObject​(java.lang.Object aTarget,
                                                                                 org.moe.natj.objc.SEL aSelector,
                                                                                 java.lang.Object anArgument)
      • classFallbacksForKeyedArchiver

        public static NSArray<java.lang.String> classFallbacksForKeyedArchiver()
      • classForKeyedUnarchiver

        public static org.moe.natj.objc.Class classForKeyedUnarchiver()
      • debugDescription_static

        public static java.lang.String debugDescription_static()
      • description_static

        public static java.lang.String description_static()
      • hash_static

        public static long hash_static()
      • instanceMethodSignatureForSelector

        public static NSMethodSignature instanceMethodSignatureForSelector​(org.moe.natj.objc.SEL aSelector)
      • instancesRespondToSelector

        public static boolean instancesRespondToSelector​(org.moe.natj.objc.SEL aSelector)
      • isSubclassOfClass

        public static boolean isSubclassOfClass​(org.moe.natj.objc.Class aClass)
      • keyPathsForValuesAffectingValueForKey

        public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey​(java.lang.String key)
      • new_objc

        public static java.lang.Object new_objc()
      • resolveClassMethod

        public static boolean resolveClassMethod​(org.moe.natj.objc.SEL sel)
      • resolveInstanceMethod

        public static boolean resolveInstanceMethod​(org.moe.natj.objc.SEL sel)
      • setVersion_static

        public static void setVersion_static​(long aVersion)
      • superclass_static

        public static org.moe.natj.objc.Class superclass_static()
      • version_static

        public static long version_static()
      • URLForTilePath

        public NSURL URLForTilePath​(MKTileOverlayPath path)
        default implementation fills out the URLTemplate
      • URLTemplate

        public java.lang.String URLTemplate()
      • boundingMapRect

        public MKMapRect boundingMapRect()
        Description copied from interface: MKOverlay
        boundingMapRect should be the smallest rectangle that completely contains the overlay. For overlays that span the 180th meridian, boundingMapRect should have either a negative MinX or a MaxX that is greater than MKMapSizeWorld.width.
        Specified by:
        boundingMapRect in interface MKOverlay
      • canReplaceMapContent

        public boolean canReplaceMapContent()
        Description copied from interface: MKOverlay
        If this method is implemented and returns YES, MKMapView may use it as a hint to skip loading or drawing the built in map content in the area covered by this overlay.
        Specified by:
        canReplaceMapContent in interface MKOverlay
      • initWithURLTemplate

        public MKTileOverlay initWithURLTemplate​(java.lang.String URLTemplate)
        URL template is a string where the substrings "{x}", "{y}", "{z}", and "{scale}" are replaced with values from a tile path to create a URL to load. For example: http://server/path?x={x}&y={y}&z={z}&scale={scale}.
      • intersectsMapRect

        public boolean intersectsMapRect​(MKMapRect mapRect)
        Description copied from interface: MKOverlay
        Implement intersectsMapRect to provide more precise control over when the view for the overlay should be shown. If omitted, MKMapRectIntersectsRect([overlay boundingRect], mapRect) will be used instead.
        Specified by:
        intersectsMapRect in interface MKOverlay
      • isGeometryFlipped

        public boolean isGeometryFlipped()
        Default is NO. If NO, a tile at x=0, y=0 is the upper left, otherwise it is in the lower left.
      • setGeometryFlipped

        public void setGeometryFlipped​(boolean value)
        Default is NO. If NO, a tile at x=0, y=0 is the upper left, otherwise it is in the lower left.
      • loadTileAtPathResult

        public void loadTileAtPathResult​(MKTileOverlayPath path,
                                         MKTileOverlay.Block_loadTileAtPathResult result)
        Load the requested tile and call the callback block with the tile data or with an error if the tile could not be loaded. The default implementation first uses -URLForTilePath to get a URL and then it loads it asynchronously.
      • maximumZ

        public long maximumZ()
      • minimumZ

        public long minimumZ()
        The minimum/maximum zoom level at which tile data is available for this overlay. A tile at level 0 covers the entire world, at level 1 it covers 1/4th of the world, at level 2 it covers 1/16th of the world, and so on.
      • setCanReplaceMapContent

        public void setCanReplaceMapContent​(boolean value)
      • setMaximumZ

        public void setMaximumZ​(long value)
      • setMinimumZ

        public void setMinimumZ​(long value)
        The minimum/maximum zoom level at which tile data is available for this overlay. A tile at level 0 covers the entire world, at level 1 it covers 1/4th of the world, at level 2 it covers 1/16th of the world, and so on.
      • setTileSize

        public void setTileSize​(CGSize value)
        default is 256x256
      • tileSize

        public CGSize tileSize()
        default is 256x256
      • title

        public java.lang.String title()
        Description copied from interface: MKAnnotation
        Title and subtitle for use by selection UI.
        Specified by:
        title in interface MKAnnotation