Deprecated: تابع Yoast\WP\SEO\Conditionals\Schema_Blocks_Conditional::get_feature_flag از نگارش Yoast SEO 20.5 که جایگزینی برای آن در دسترس نیست منسوخ شده است. in /var/www/html/wp-includes/functions.php on line 6078 Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/wp-includes/functions.php:6078) in /var/www/html/wp-includes/rest-api/class-wp-rest-server.php on line 1831 {"id":3896,"date":"2021-04-24T16:59:38","date_gmt":"2021-04-24T12:29:38","guid":{"rendered":"https:\/\/help.map.ir\/?post_type=manual_documentation&p=3896"},"modified":"2021-09-18T14:27:35","modified_gmt":"2021-09-18T09:57:35","slug":"reactsdk-camera","status":"publish","type":"manual_documentation","link":"https:\/\/help.map.ir\/documentation\/reactsdk-docs\/reactsdk-camera\/","title":{"rendered":"Camera"},"content":{"rendered":"\n
\u0628\u0631\u0627\u06cc \u062a\u0646\u0638\u06cc\u0645 \u0632\u0627\u0648\u06cc\u0647 \u062f\u06cc\u062f \u0646\u0642\u0634\u0647 \u0628\u0627\u06cc\u062f \u0627\u0632 \u0627\u06cc\u0646 \u06a9\u0627\u0645\u067e\u0648\u0646\u0646\u062a \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0631\u062f.<\/p>\n\n\n\n
\u0642\u0627\u0628\u0644\u06cc\u062a\u200c\u0647\u0627:<\/strong><\/p>\n\n\n\n fitBounds(northEastCoordinates, southWestCoordinates[, padding][, animationDuration])<\/strong><\/p>\n\n\n\n Map camera transitions to fit provided bounds<\/p>\n\n\n\n :arguments<\/strong><\/p>\n\n\n\n flyTo(coordinates[, animationDuration])<\/strong><\/p>\n\n\n\n Map camera will fly to new coordinate<\/p>\n\n\n\n :arguments<\/strong><\/p>\n\n\n\n moveTo(coordinates[, animationDuration])<\/strong><\/p>\n\n\n\n Map camera will move to new coordinate at the same zoom level<\/p>\n\n\n\n :arguments<\/strong><\/p>\n\n\n\n zoomTo(zoomLevel[, animationDuration])<\/strong><\/p>\n\n\n\n Map camera will zoom to specified level<\/p>\n\n\n\n :arguments<\/strong><\/p>\n\n\n\n setCamera(config)<\/strong><\/p>\n\n\n\n Map camera will perform updates based on provided config, Advanced use only<\/p>\n\n\n\n :arguments<\/strong><\/p>\n\n\n\nDescription<\/th> Required<\/th> Default<\/th> Type<\/th> Prop<\/th><\/tr><\/thead> The duration a camera update takes (in ms)<\/td> false<\/td> \u06f2\u06f0\u06f0\u06f0<\/td> number<\/td> animationDuration<\/td><\/tr> The animationstyle when the camara updates. One of; flyTo<\/code>,
easeTo<\/code>,
linearTo<\/code>,
moveTo<\/code><\/td>
false<\/td> 'easeTo'<\/code><\/td>
enum<\/td> animationMode<\/td><\/tr> FIX ME NO DESCRIPTION<\/td> false<\/td> none<\/td> shape<\/td> defaultSettings<\/td><\/tr> Center coordinate on map [lng, lat]<\/td> false<\/td> none<\/td> array<\/td> centerCoordinate-<\/td><\/tr> Heading on map<\/td> false<\/td> none<\/td> number<\/td> heading-<\/td><\/tr> Pitch on map<\/td> false<\/td> none<\/td> number<\/td> pitch-<\/td><\/tr> Represents a rectangle in geographical coordinates marking the visible area of the map<\/td> false<\/td> none<\/td> shape<\/td> bound-<\/td><\/tr> northEastCoordinates – North east coordinate of bound<\/td> true<\/td> none<\/td> array<\/td> ne–<\/td><\/tr> southWestCoordinates – North east coordinate of bound<\/td> true<\/td> none<\/td> array<\/td> sw–<\/td><\/tr> Left camera padding for bounds<\/td> false<\/td> none<\/td> number<\/td> paddingLeft–<\/td><\/tr> Right camera padding for bounds<\/td> false<\/td> none<\/td> number<\/td> paddingRight–<\/td><\/tr> Top camera padding for bounds<\/td> false<\/td> none<\/td> number<\/td> paddingTop–<\/td><\/tr> Bottom camera padding for bounds<\/td> false<\/td> none<\/td> number<\/td> paddingBottom–<\/td><\/tr> Zoom level of the map<\/td> false<\/td> none<\/td> number<\/td> zoomLevel-<\/td><\/tr> Center coordinate on map [lng, lat]<\/td> false<\/td> none<\/td> array<\/td> centerCoordinate<\/td><\/tr> Heading on map<\/td> false<\/td> none<\/td> number<\/td> heading-<\/td><\/tr> Pitch on map<\/td> false<\/td> none<\/td> number<\/td> pitch-<\/td><\/tr> Represents a rectangle in geographical coordinates marking the visible area of the map<\/td> false<\/td> none<\/td> shape<\/td> bound-<\/td><\/tr> northEastCoordinates – North east coordinate of bound<\/td> true<\/td> none<\/td> array<\/td> ne–<\/td><\/tr> southWestCoordinates – North east coordinate of bound<\/td> false<\/td> none<\/td> array<\/td> sw–<\/td><\/tr> Left camera padding for bounds<\/td> false<\/td> none<\/td> number<\/td> paddingLeft–<\/td><\/tr> Right camera padding for bounds<\/td> false<\/td> none<\/td> <\/td> paddingRight–<\/td><\/tr> Top camera padding for bounds<\/td> false<\/td> none<\/td> <\/td> paddingTop–<\/td><\/tr> Bottom camera padding for bounds<\/td> false<\/td> none<\/td> <\/td> paddingBottom–<\/td><\/tr> Zoom level of the map<\/td> false<\/td> none<\/td> <\/td> zoomLevel<\/td><\/tr> The minimun zoom level of the map<\/td> false<\/td> none<\/td> number<\/td> minZoomLevel<\/td><\/tr> The maximun zoom level of the map<\/td> false<\/td> none<\/td> number<\/td> maxZoomLevel<\/td><\/tr> Should the map orientation follow the user’s<\/td> false<\/td> none<\/td> boolean<\/td> followUserLocation<\/td><\/tr> The mode used to track the user location on the map<\/td> false<\/td> none<\/td> enum<\/td> followUserMode<\/td><\/tr> The zoomLevel on map while followUserLocation is set to true<\/code><\/td>
false<\/td> none<\/td> number<\/td> followZoomLevel<\/td><\/tr> The pitch on map while followUserLocation is set to true<\/code><\/td>
false<\/td> none<\/td> number<\/td> followPitch<\/td><\/tr> The heading on map while followUserLocation is set to true<\/code><\/td>
false<\/td> none<\/td> number<\/td> followHeading<\/td><\/tr> Manually update the camera – helpful for when props did not update, however you still want the camera to move<\/td> false<\/td> none<\/td> any<\/td> triggerKey<\/td><\/tr> FIX ME NO DESCRIPTION<\/td> false<\/td> none<\/td> array<\/td> alignment<\/td><\/tr> FIX ME NO DESCRIPTION<\/td> false<\/td> false<\/td> FIX ME UNKNOWN TYPE<\/td> isUserInteraction<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n
\n\n\n\nmethods<\/h3>\n\n\n\n
Description<\/th> Required<\/th> Type<\/th> Name<\/th><\/tr><\/thead> North east coordinate of bound<\/td> Yes<\/td> Array<\/td> northEastCoordinates<\/td><\/tr> South west coordinate of bound<\/td> Yes<\/td> Array<\/td> southWestCoordinates<\/td><\/tr> Camera padding for bound<\/td> No<\/td> Number<\/td> padding<\/td><\/tr> Duration of camera animation<\/td> No<\/td> Number<\/td> animationDuration<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n this.camera.fitBounds([lng, lat], [lng, lat])\nthis.camera.fitBounds([lng, lat], [lng, lat], 20, 1000) \/\/ padding for all sides\nthis.camera.fitBounds([lng, lat], [lng, lat], [verticalPadding, horizontalPadding], 1000)\nthis.camera.fitBounds([lng, lat], [lng, lat], [top, right, bottom, left], 1000)<\/pre>\n\n\n\n
\n\n\n\nDescription<\/th> Required<\/th> Type<\/th> Name<\/th><\/tr><\/thead> Coordinates that map camera will jump too<\/td> Yes<\/td> Array<\/td> coordinates<\/td><\/tr> Duration of camera animation<\/td> No<\/td> Number<\/td> animationDuration<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n this.camera.flyTo([lng, lat])\nthis.camera.flyTo([lng, lat], 12000)<\/pre>\n\n\n\n
\n\n\n\nDescription<\/th> Required<\/th> Type<\/th> Name<\/th><\/tr><\/thead> Coordinates that map camera will jump too<\/td> Yes<\/td> Array<\/td> coordinates<\/td><\/tr> Duration of camera animation<\/td> No<\/td> Number<\/td> animationDuration<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n this.camera.moveTo([lng, lat], 200) \/\/ eases camera to new location based on duration\nthis.camera.moveTo([lng, lat]) \/\/ snaps camera to new location without any easing<\/pre>\n\n\n\n
\n\n\n\nDescription<\/th> Required<\/th> Type<\/th> Name<\/th><\/tr><\/thead> Zoom level that the map camera will animate too<\/td> Yes<\/td> Number<\/td> zoomLevel<\/td><\/tr> Duration of camera animation<\/td> No<\/td> Number<\/td> animationDuration<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n this.camera.zoomTo(16)\nthis.camera.zoomTo(16, 100)<\/pre>\n\n\n\n
\n\n\n\nDescription<\/th> Required<\/th> Type<\/th> Name<\/th><\/tr><\/thead> Camera configuration<\/td> Yes<\/td> Object<\/td> config<\/td><\/tr><\/tbody><\/table><\/figure>\n","protected":false},"author":4,"featured_media":0,"parent":3734,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","manualdocumentationcategory":[97],"yoast_head":"\n