|
684 | 684 | "default": "none", |
685 | 685 | "description": "FIX ME NO DESCRIPTION" |
686 | 686 | }, |
| 687 | + { |
| 688 | + "name": "onUserTrackingModeChange", |
| 689 | + "required": false, |
| 690 | + "type": "func", |
| 691 | + "default": "none", |
| 692 | + "description": "FIX ME NO DESCRIPTION" |
| 693 | + }, |
687 | 694 | { |
688 | 695 | "name": "isUserInteraction", |
689 | 696 | "required": false, |
|
2488 | 2495 | "name": "setCamera", |
2489 | 2496 | "docblock": "Map camera will perform updates based on provided config. Deprecated use Camera#setCamera.", |
2490 | 2497 | "modifiers": [], |
2491 | | - "params": [ |
2492 | | - { |
2493 | | - "name": "config" |
2494 | | - } |
2495 | | - ], |
| 2498 | + "params": [], |
2496 | 2499 | "returns": null, |
2497 | 2500 | "description": "Map camera will perform updates based on provided config. Deprecated use Camera#setCamera.", |
2498 | 2501 | "examples": [] |
|
2574 | 2577 | } |
2575 | 2578 | ], |
2576 | 2579 | "props": [ |
2577 | | - { |
2578 | | - "name": "showUserLocation", |
2579 | | - "required": false, |
2580 | | - "type": "bool", |
2581 | | - "default": "none", |
2582 | | - "description": "Shows the users location on the map" |
2583 | | - }, |
2584 | | - { |
2585 | | - "name": "userTrackingMode", |
2586 | | - "required": false, |
2587 | | - "type": "number", |
2588 | | - "default": "none", |
2589 | | - "description": "The mode used to track the user location on the map" |
2590 | | - }, |
2591 | | - { |
2592 | | - "name": "userLocationVerticalAlignment", |
2593 | | - "required": false, |
2594 | | - "type": "number", |
2595 | | - "default": "none", |
2596 | | - "description": "The vertical alignment of the user location within in map. This is only enabled while tracking the users location." |
2597 | | - }, |
2598 | 2580 | { |
2599 | 2581 | "name": "contentInset", |
2600 | 2582 | "required": false, |
|
2616 | 2598 | "default": "MapboxGL.StyleURL.Street", |
2617 | 2599 | "description": "Style URL for map" |
2618 | 2600 | }, |
| 2601 | + { |
| 2602 | + "name": "preferredFramesPerSecond", |
| 2603 | + "required": false, |
| 2604 | + "type": "number", |
| 2605 | + "default": "none", |
| 2606 | + "description": "iOS: The preferred frame rate at which the map view is rendered.\nThe default value for this property is MGLMapViewPreferredFramesPerSecondDefault,\nwhich will adaptively set the preferred frame rate based on the capability of\nthe user’s device to maintain a smooth experience. This property can be set to arbitrary integer values.\n\nAndroid: The maximum frame rate at which the map view is rendered, but it can't excess the ability of device hardware.\nThis property can be set to arbitrary integer values." |
| 2607 | + }, |
2619 | 2608 | { |
2620 | 2609 | "name": "localizeLabels", |
2621 | 2610 | "required": false, |
|
2807 | 2796 | "default": "none", |
2808 | 2797 | "description": "This event is triggered when the map fully finished rendering the map." |
2809 | 2798 | }, |
| 2799 | + { |
| 2800 | + "name": "onUserLocationUpdate", |
| 2801 | + "required": false, |
| 2802 | + "type": "func", |
| 2803 | + "default": "none", |
| 2804 | + "description": "This event is triggered when the user location is updated." |
| 2805 | + }, |
2810 | 2806 | { |
2811 | 2807 | "name": "onDidFinishLoadingStyle", |
2812 | 2808 | "required": false, |
|
4705 | 4701 | { |
4706 | 4702 | "name": "setLocationManager", |
4707 | 4703 | "docblock": null, |
4708 | | - "modifiers": [], |
| 4704 | + "modifiers": [ |
| 4705 | + "async" |
| 4706 | + ], |
4709 | 4707 | "params": [ |
4710 | 4708 | { |
4711 | 4709 | "name": "{running}", |
|
4780 | 4778 | "VectorSource": { |
4781 | 4779 | "description": "VectorSource is a map content source that supplies tiled vector data in Mapbox Vector Tile format to be shown on the map.\nThe location of and metadata about the tiles are defined either by an option dictionary or by an external file that conforms to the TileJSON specification.", |
4782 | 4780 | "displayName": "VectorSource", |
4783 | | - "methods": [], |
| 4781 | + "methods": [ |
| 4782 | + { |
| 4783 | + "name": "features", |
| 4784 | + "docblock": "Returns all features that match the query parameters regardless of whether or not the feature is\ncurrently rendered on the map. The domain of the query includes all currently-loaded vector tiles\nand GeoJSON source tiles. This function does not check tiles outside of the visible viewport.\n\n@example\nvectorSource.features(['id1', 'id2'])\n\n@param {Array=} layerIDs - A set of strings that correspond to the names of layers defined in the current style. Only the features contained in these layers are included in the returned array.\n@param {Array=} filter - an optional filter statement to filter the returned Features.\n@return {FeatureCollection}", |
| 4785 | + "modifiers": [ |
| 4786 | + "async" |
| 4787 | + ], |
| 4788 | + "params": [ |
| 4789 | + { |
| 4790 | + "name": "layerIDs", |
| 4791 | + "description": "A set of strings that correspond to the names of layers defined in the current style. Only the features contained in these layers are included in the returned array.", |
| 4792 | + "type": { |
| 4793 | + "name": "Array" |
| 4794 | + }, |
| 4795 | + "optional": true |
| 4796 | + }, |
| 4797 | + { |
| 4798 | + "name": "filter", |
| 4799 | + "description": "an optional filter statement to filter the returned Features.", |
| 4800 | + "type": { |
| 4801 | + "name": "Array" |
| 4802 | + }, |
| 4803 | + "optional": true |
| 4804 | + } |
| 4805 | + ], |
| 4806 | + "returns": { |
| 4807 | + "description": null, |
| 4808 | + "type": { |
| 4809 | + "name": "FeatureCollection" |
| 4810 | + } |
| 4811 | + }, |
| 4812 | + "description": "Returns all features that match the query parameters regardless of whether or not the feature is\ncurrently rendered on the map. The domain of the query includes all currently-loaded vector tiles\nand GeoJSON source tiles. This function does not check tiles outside of the visible viewport.", |
| 4813 | + "examples": [ |
| 4814 | + "\nvectorSource.features(['id1', 'id2'])\n\n" |
| 4815 | + ] |
| 4816 | + } |
| 4817 | + ], |
4784 | 4818 | "props": [ |
4785 | 4819 | { |
4786 | 4820 | "name": "id", |
|
4903 | 4937 | "default": "none", |
4904 | 4938 | "description": "FIX ME NO DESCRIPTION" |
4905 | 4939 | }, |
| 4940 | + { |
| 4941 | + "name": "children", |
| 4942 | + "required": false, |
| 4943 | + "type": "any", |
| 4944 | + "default": "none", |
| 4945 | + "description": "FIX ME NO DESCRIPTION" |
| 4946 | + }, |
| 4947 | + { |
| 4948 | + "name": "style", |
| 4949 | + "required": false, |
| 4950 | + "type": "any", |
| 4951 | + "default": "none", |
| 4952 | + "description": "FIX ME NO DESCRIPTION" |
| 4953 | + }, |
4906 | 4954 | { |
4907 | 4955 | "name": "icon", |
4908 | 4956 | "required": false, |
|
5148 | 5196 | } |
5149 | 5197 | ], |
5150 | 5198 | "examples": [ |
5151 | | - "// creates a temp file png of base map\nconst uri = await MapboxGL.snapshotManager.takeSnap({\n centerCoordinate: [-74.126410, 40.797968],\n width: width,\n height: height,\n zoomLevel: 12,\n pitch: 30,\n heading: 20,\n styleURL: MapboxGL.StyleURL.Dark,\n writeToDisk: true, // creates a temp file\n});\n\n// creates base64 png of base map\nconst uri = await MapboxGL.snapshotManager.takeSnap({\n centerCoordinate: [-74.126410, 40.797968],\n width: width,\n height: height,\n zoomLevel: 12,\n pitch: 30,\n heading: 20,\n styleURL: MapboxGL.StyleURL.Dark,\n});\n\n// creates snapshot with bounds\nconst uri = await MapboxGL.snapshotManager.takeSnap({\n bounds: [[-74.126410, 40.797968], [-74.143727, 40.772177]],\n width: width,\n height: height,\n styleURL: MapboxGL.StyleURL.Dark,\n});" |
| 5199 | + "// creates a temp file png of base map\nconst uri = await MapboxGL.snapshotManager.takeSnap({\n centerCoordinate: [-74.126410, 40.797968],\n width: width,\n height: height,\n zoomLevel: 12,\n pitch: 30,\n heading: 20,\n styleURL: MapboxGL.StyleURL.Dark,\n writeToDisk: true, // Create a temporary file\n});\n\n// creates base64 png of base map without logo\nconst uri = await MapboxGL.snapshotManager.takeSnap({\n centerCoordinate: [-74.126410, 40.797968],\n width: width,\n height: height,\n zoomLevel: 12,\n pitch: 30,\n heading: 20,\n styleURL: MapboxGL.StyleURL.Dark,\n withLogo: false, // Disable Mapbox logo (Android only)\n});\n\n// creates snapshot with bounds\nconst uri = await MapboxGL.snapshotManager.takeSnap({\n bounds: [[-74.126410, 40.797968], [-74.143727, 40.772177]],\n width: width,\n height: height,\n styleURL: MapboxGL.StyleURL.Dark,\n});" |
5152 | 5200 | ], |
5153 | 5201 | "returns": { |
5154 | 5202 | "description": "", |
|
0 commit comments