Circle | Maps SDK for Android - Google Developers
文章推薦指數: 80 %
GoogleMap map; // ... get a map. // Add a circle in Sydney Circle circle = map.addCircle(new CircleOptions() .center(new LatLng(-33.87365, ...
Google
MapsPlatform
Overview
Products
Pricing
Documentation
GetStarted
GetStartedwithGoogleMapsPlatform
APIPicker
Billing&Pricing
Reporting&Monitoring
MapIDs
FAQ
SupportandResources
IncidentManagement
Maps
MapsJavaScriptAPI
MapsSDKforAndroid
MapsSDKforiOS
MapsStaticAPI
StreetViewStaticAPI
MapsEmbedAPI
MapsURLs
MapsElevationAPI
Routes
DirectionsAPI
DistanceMatrixAPI
RoadsAPI
Solutions
IndustrySolutions
GamingServices
TransportationandLogistics
Places
PlacesAPI
PlacesSDKforAndroid
PlacesSDKforiOS
PlacesLibrary,MapsJavaScriptAPI
GeocodingAPI
GeolocationAPI
TimeZoneAPI
AdditionalResources
APISecurityBestPractices
MapCoverageDetails
OptimizationGuide
MobileOSandsoftwaresupport
Deprecations
AssetTrackingPlan
RootCAMigrationFAQ
URLEncoding
WordPressUsers
Blog
Community
StackOverflow
GitHub
YouTube
Discord
Twitter
IssueTracker
Language
English
BahasaIndonesia
Deutsch
Español
Français
Português–Brasil
Русский
中文–简体
日本語
한국어
Signin
Android
MapsSDKforAndroid
GetStarted
Contactsales
Guides
Reference
Samples
Support
Google
MapsPlatform
Overview
Products
Pricing
Documentation
More
Guides
Reference
Samples
Support
Blog
Community
More
Reference
com.google.android.gms.maps
com.google.android.gms.maps.model
Beta(Deprecated)
com.google.android.libraries.maps
OverviewCameraUpdateCameraUpdateFactory
GoogleMap
OverviewCancelableCallbackInfoWindowAdapterOnCameraChangeListenerOnCameraIdleListenerOnCameraMoveCanceledListenerOnCameraMoveListenerOnCameraMoveStartedListenerOnCircleClickListenerOnGroundOverlayClickListenerOnIndoorStateChangeListenerOnInfoWindowClickListenerOnInfoWindowCloseListenerOnInfoWindowLongClickListenerOnMapClickListenerOnMapLoadedCallbackOnMapLongClickListenerOnMarkerClickListenerOnMarkerDragListenerOnMyLocationButtonClickListenerOnMyLocationChangeListenerOnMyLocationClickListenerOnPoiClickListenerOnPolygonClickListenerOnPolylineClickListenerSnapshotReadyCallbackGoogleMapOptions
LocationSource
OverviewOnLocationChangedListenerMapFragmentMapViewMapsInitializerOnMapReadyCallbackOnStreetViewPanoramaReadyCallbackProjection
StreetViewPanorama
OverviewOnStreetViewPanoramaCameraChangeListenerOnStreetViewPanoramaChangeListenerOnStreetViewPanoramaClickListenerOnStreetViewPanoramaLongClickListenerStreetViewPanoramaFragmentStreetViewPanoramaOptionsStreetViewPanoramaViewSupportMapFragmentSupportStreetViewPanoramaFragmentUiSettings
com.google.android.libraries.maps.model
OverviewBitmapDescriptorBitmapDescriptorFactoryButtCap
CameraPosition
OverviewBuilderCapCircleCircleOptionsCustomCapDashDotGapGroundOverlayGroundOverlayOptionsIndoorBuildingIndoorLevelJointTypeLatLng
LatLngBounds
OverviewBuilderMapStyleOptions
Marker
OverviewCollisionBehaviorMarkerOptionsPatternItemPointOfInterestPolygonPolygonOptionsPolylinePolylineOptionsRoundCapRuntimeRemoteException
SpriteStyle
OverviewBuilderSquareCapStampStyle
StreetViewPanoramaCamera
OverviewBuilderStreetViewPanoramaLinkStreetViewPanoramaLocation
StreetViewPanoramaOrientation
OverviewBuilderStreetViewSource
StrokeStyle
OverviewBuilderStyleSpan
TextureStyle
OverviewBuilderTileTileOverlayTileOverlayOptionsTileProviderUrlTileProviderVisibleRegion
GetStarted
GetStartedwithGoogleMapsPlatform
APIPicker
Billing&Pricing
Reporting&Monitoring
MapIDs
FAQ
SupportandResources
IncidentManagement
Maps
MapsJavaScriptAPI
MapsSDKforAndroid
MapsSDKforiOS
MapsStaticAPI
StreetViewStaticAPI
MapsEmbedAPI
MapsURLs
MapsElevationAPI
Routes
DirectionsAPI
DistanceMatrixAPI
RoadsAPI
Solutions
IndustrySolutions
GamingServices
TransportationandLogistics
Places
PlacesAPI
PlacesSDKforAndroid
PlacesSDKforiOS
PlacesLibrary,MapsJavaScriptAPI
GeocodingAPI
GeolocationAPI
TimeZoneAPI
AdditionalResources
APISecurityBestPractices
MapCoverageDetails
OptimizationGuide
MobileOSandsoftwaresupport
Deprecations
AssetTrackingPlan
RootCAMigrationFAQ
URLEncoding
WordPressUsers
StackOverflow
GitHub
YouTube
Discord
Twitter
IssueTracker
Home
Products
GoogleMapsPlatform
Documentation
Android
MapsSDKforAndroid
Reference
Sendfeedback
Circle
publicfinalclass
Circle
extendsObject
Acircleontheearth'ssurface(sphericalcap).
Acirclehasthefollowingproperties.
Center
ThecenteroftheCircleisspecifiedasaLatLng.
Radius
Theradiusofthecircle,specifiedinmeters.Itshouldbezeroorgreater.
StrokeWidth
Thewidthofthecircle'soutlineinscreenpixels.Thewidthisconstantandindependent
ofthecamera'szoomlevel.Thedefaultvalueis10.
StrokeColor
ThecolorofthecircleoutlineinARGBformat,thesameformatusedbyColor.Thedefaultvalueisblack(0xff000000).
Strokepattern
Solid(default,representedbynull)orasequenceofPatternItemobjects
toberepeatedalongthecircle'soutline.AvailablePatternItemtypes:Gap
(definedbygaplengthinpixels),Dash(definedbystrokewidthanddashlengthin
pixels)andDot(circular,centeredonthecircle'soutline,diameterdefinedby
strokewidthinpixels).
FillColor
ThecolorofthecirclefillinARGBformat,thesameformatusedbyColor.Thedefaultvalueistransparent(0x00000000).
Z-Index
Theorderinwhichthistileoverlayisdrawnwithrespecttootheroverlays(including
GroundOverlays,TileOverlays,Polylines,andPolygonsbut
notMarkers).Anoverlaywithalargerz-indexisdrawnoveroverlayswithsmaller
z-indices.Theorderofoverlayswiththesamez-indexisarbitrary.ThedefaultzIndexis
0.
Visibility
Indicatesifthecircleisvisibleorinvisible,i.e.,whetheritisdrawnonthemap.An
invisiblecircleisnotdrawn,butretainsallofitsotherproperties.Thedefaultis
true,i.e.,visible.
Tag
AnObjectassociatedwiththecircle.Forexample,theObjectcancontain
dataaboutwhatthecirclerepresents.ThisiseasierthanstoringaseparateMap
延伸文章資訊
- 1Measure Circle / Radius on a map - Maps.ie
Draw a circle on a map anywhere in the world using this Google radius map calculator. Start by ei...
- 2Can You Draw a Radius on Google Maps? - Technipages
Google Maps does not support the radius functionality, which means that you can't determine the r...
- 3Draw a circle with a radius on a map - Map Developers
You can also click a point on the map to place a circle at that spot. You can adjust the placemen...
- 4Circles | Maps JavaScript API - Google Developers
This example creates circles on the map, representing populations in ... git clone -b sample-circ...
- 5Google Maps API - 形狀( 圓形、矩形)
圓形設定Circle Options · map:指定要放在哪個地圖上,如果沒有設定,可以再用setMap 的方法把圓形放到地圖裡。 · center:圓形的圓心,使用一組經緯度座標表示。 · ...