1"use strict";(self.webpackChunkreact_yandex_maps_website=self.webpackChunkreact_yandex_maps_website||[]).push([[41],{3718:(o,e,t)=>{t.r(e),t.d(e,{assets:()=>s,contentTitle:()=>i,default:()=>u,frontMatter:()=>r,metadata:()=>c,toc:()=>p});var n=t(7462),a=(t(7294),t(3905)),l=t(886);const r={slug:"/api/controls/geolocation-control",title:"GeolocationControl"},i="GeolocationControl",c={unversionedId:"api-reference/controls/geolocation-control",id:"api-reference/controls/geolocation-control",title:"GeolocationControl",description:"Renders Yandex.Maps API GeolocationControl control",source:"@site/i18n/en/docusaurus-plugin-content-docs/current/api-reference/controls/geolocation-control.mdx",sourceDirName:"api-reference/controls",slug:"/api/controls/geolocation-control",permalink:"/en/api/controls/geolocation-control",draft:!1,tags:[],version:"current",frontMatter:{slug:"/api/controls/geolocation-control",title:"GeolocationControl"},sidebar:"tutorialSidebar",previous:{title:"FullscreenControl",permalink:"/en/api/controls/fullscreen-control"},next:{title:"ListBoxItem",permalink:"/en/api/controls/listbox-item"}},s={},p=[{value:"Basic Usage",id:"basic-usage",level:2},{value:"Props",id:"props",level:2}],d={toc:p};function u(o){let{components:e,...t}=o;return(0,a.kt)("wrapper",(0,n.Z)({},d,t,{components:e,mdxType:"MDXLayout"}),(0,a.kt)("h1",{id:"geolocationcontrol"},"GeolocationControl"),(0,a.kt)("p",null,"Renders Yandex.Maps API ",(0,a.kt)("a",{parentName:"p",href:"https://tech.yandex.com/maps/doc/jsapi/2.1/ref/reference/control.GeolocationControl-docpage/"},"GeolocationControl")," control"),(0,a.kt)("h2",{id:"basic-usage"},"Basic Usage"),(0,a.kt)(l.X,{mdxType:"Canvas"},"\n <YMaps>\n <Map\n defaultState={{\n center: [55.751574, 37.573856],\n zoom: 9,\n controls: [],\n }}\n >\n <GeolocationControl options={{ float: 'left' }} />\n </Map>\n </YMaps>\n"),(0,a.kt)("h2",{id:"props"},"Props"),(0,a.kt)("ul",null,(0,a.kt)("li",{parentName:"ul"},(0,a.kt)("inlineCode",{parentName:"li"},"data"),": Control data"),(0,a.kt)("li",{parentName:"ul"},(0,a.kt)("inlineCode",{parentName:"li"},"defaultData"),": Uncontrolled control data"),(0,a.kt)("li",{parentName:"ul"},(0,a.kt)("inlineCode",{parentName:"li"},"options"),": Control options"),(0,a.kt)("li",{parentName:"ul"},(0,a.kt)("inlineCode",{parentName:"li"},"defaultOptions"),": Uncontrolled control options"),(0,a.kt)("li",{parentName:"ul"},(0,a.kt)("inlineCode",{parentName:"li"},"state"),": Control state"),(0,a.kt)("li",{parentName:"ul"},(0,a.kt)("inlineCode",{parentName:"li"},"defaultState"),": Uncontrolled control state"),(0,a.kt)("li",{parentName:"ul"},(0,a.kt)("inlineCode",{parentName:"li"},"instanceRef"),": Object instance")))}u.isMDXComponent=!0}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.