MCPcopy Create free account
hub / github.com/react-native-maps/react-native-maps / render

Method render

example/src/App.tsx:139–196  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

137 }
138
139 render() {
140 return this.renderExamples(
141 [
142 // [<component>, <component description>, <Google compatible>, <Google add'l description>]
143 [StaticMap, 'StaticMap', true],
144 [ThemeMap, 'ThemeMap', true],
145 [DisplayLatLng, 'Tracking Position', true],
146 [ViewsAsMarkers, 'Arbitrary Views as Markers', true],
147 [EventListener, 'Events', true, '(incomplete)'],
148 [MarkerTypes, 'Image Based Markers', true],
149 [DraggableMarkers, 'Draggable Markers', true],
150 [PolygonCreator, 'Polygon Creator', true],
151 [PolylineCreator, 'Polyline Creator', true],
152 [GradientPolylines, 'Gradient Polylines', true],
153 [GradientPolylinesFunctional, 'Gradient Polylines Functional', true],
154 [AnimatedViews, 'Animating with MapViews'],
155 [AnimatedMarkers, 'Animated Marker Position'],
156 [Callouts, 'Custom Callouts', true],
157 [Overlays, 'Circles, Polygons, and Polylines', true],
158 [DefaultMarkers, 'Default Markers', true],
159 [CustomMarkers, 'Custom Markers', true],
160 [TakeSnapshot, 'Take Snapshot', true, '(incomplete)'],
161 [CachedMap, 'Cached Map'],
162 [LoadingMap, 'Map with loading', true],
163 [MapBoundaries, 'Get visible map boundaries', true],
164 [FitToSuppliedMarkers, 'Focus Map On Markers', true],
165 [FitToCoordinates, 'Fit Map To Coordinates', true],
166 [LiteMapView, 'Android Lite MapView'],
167 [CustomTiles, 'Custom Tiles', true],
168 [WMSTiles, 'WMS Tiles', true],
169 [ZIndexMarkers, 'Position Markers with Z-index', true],
170 [LegalLabel, 'Reposition the legal label', true],
171 [SetNativePropsOverlays, 'Update native props', true],
172 [CustomOverlay, 'Custom Overlay Component', true],
173 [TestIdMarkers, 'Test ID for Automation', true],
174 [MapKml, 'Load Map with KML', true],
175 [BugMarkerWontUpdate, "BUG: Marker Won't Update (Android)", true],
176 [ImageOverlayWithAssets, 'Image Overlay Component with Assets', true],
177 [ImageOverlayWithURL, 'Image Overlay Component with URL', true],
178 [ImageOverlayWithBearing, 'Image Overlay with Bearing', true],
179 [AnimatedNavigation, 'Animated Map Navigation', true],
180 [OnPoiClick, 'On Poi Click', true],
181 [IndoorMap, 'Indoor Map', true],
182 [CameraControl, 'CameraControl', true],
183 [MassiveCustomMarkers, 'MassiveCustomMarkers', true],
184 [GeojsonMap, 'Geojson', true],
185 [CacheURLTiles, 'CacheURLTiles', true],
186 [CacheWMSTiles, 'CacheWMSTiles', true],
187 [HeatMap, 'HeatMap', true],
188 ]
189 // Filter out examples that are not yet supported for Google Maps on iOS.
190 .filter(
191 example =>
192 ANDROID || (IOS && (example[2] || !this.state.useGoogleMaps)),
193 )
194 .map(makeExampleMapper(IOS && this.state.useGoogleMaps)),
195 );
196 }

Callers

nothing calls this directly

Calls 2

renderExamplesMethod · 0.95
makeExampleMapperFunction · 0.85

Tested by

no test coverage detected