File tree Expand file tree Collapse file tree 7 files changed +1828
-1786
lines changed
Expand file tree Collapse file tree 7 files changed +1828
-1786
lines changed Load Diff Large diffs are not rendered by default.
Original file line number Diff line number Diff line change 22< pre > < code > < span class ="hl-0 "> import</ span > < span class ="hl-1 "> { </ span > < span class ="hl-2 "> Wrapper</ span > < span class ="hl-1 "> } </ span > < span class ="hl-0 "> from</ span > < span class ="hl-1 "> </ span > < span class ="hl-3 "> '@googlemaps/react-wrapper'</ span > < span class ="hl-1 "> ;</ span > < br /> < br /> < span class ="hl-4 "> const</ span > < span class ="hl-1 "> </ span > < span class ="hl-5 "> MyApp</ span > < span class ="hl-1 "> = () </ span > < span class ="hl-4 "> =></ span > < span class ="hl-1 "> (</ span > < br /> < span class ="hl-1 "> <</ span > < span class ="hl-2 "> Wrapper</ span > < span class ="hl-1 "> </ span > < span class ="hl-2 "> apiKey</ span > < span class ="hl-1 "> ={</ span > < span class ="hl-3 "> 'YOUR_API_KEY'</ span > < span class ="hl-1 "> }></ span > < br /> < span class ="hl-1 "> <</ span > < span class ="hl-2 "> MyMapComponent</ span > < span class ="hl-1 "> /></ span > < br /> < span class ="hl-1 "> </</ span > < span class ="hl-2 "> Wrapper</ span > < span class ="hl-1 "> ></ span > < br /> < span class ="hl-1 "> );</ span >
33</ code > < button > Copy</ button > </ pre >
44
5- </ div > < div class ="tsd-parameters "> < h4 class ="tsd-parameters-title "> Parameters</ h4 > < ul class ="tsd-parameter-list "> < li > < span > < span class ="tsd-kind-parameter "> props</ span > : < a href ="../interfaces/WrapperProps.html " class ="tsd-signature-type tsd-kind-interface "> WrapperProps</ a > </ span > </ li > </ ul > </ div > < h4 class ="tsd-returns-title "> Returns < span class ="tsd-signature-type "> ReactElement</ span > </ h4 > < aside class ="tsd-sources "> < ul > < li > Defined in < a href ="https://github.com/googlemaps/react-wrapper/blob/305fd2b8818c310d7908b8dfeb42bc9504eff93c/src/index.tsx#L65 "> index.tsx:65</ a > </ li > </ ul > </ aside > </ div > </ li > </ ul > </ section > </ div > < div class ="col-sidebar "> < div class ="page-menu "> < div class ="tsd-navigation settings "> < details class ="tsd-accordion "> < summary class ="tsd-accordion-summary "> < svg width ="20 " height ="20 " viewBox ="0 0 24 24 " fill ="none " aria-hidden ="true "> < use href ="../assets/icons.svg#icon-chevronDown "> </ use > </ svg > < h3 > Settings</ h3 > </ summary > < div class ="tsd-accordion-details "> < div class ="tsd-filter-visibility "> < span class ="settings-label "> Member Visibility</ span > < ul id ="tsd-filter-options "> < li class ="tsd-filter-item "> < label class ="tsd-filter-input "> < input type ="checkbox " id ="tsd-filter-protected " name ="protected "/> < svg width ="32 " height ="32 " viewBox ="0 0 32 32 " aria-hidden ="true "> < rect class ="tsd-checkbox-background " width ="30 " height ="30 " x ="1 " y ="1 " rx ="6 " fill ="none "> </ rect > < path class ="tsd-checkbox-checkmark " d ="M8.35422 16.8214L13.2143 21.75L24.6458 10.25 " stroke ="none " stroke-width ="3.5 " stroke-linejoin ="round " fill ="none "> </ path > </ svg > < span > Protected</ span > </ label > </ li > < li class ="tsd-filter-item "> < label class ="tsd-filter-input "> < input type ="checkbox " id ="tsd-filter-inherited " name ="inherited " checked /> < svg width ="32 " height ="32 " viewBox ="0 0 32 32 " aria-hidden ="true "> < rect class ="tsd-checkbox-background " width ="30 " height ="30 " x ="1 " y ="1 " rx ="6 " fill ="none "> </ rect > < path class ="tsd-checkbox-checkmark " d ="M8.35422 16.8214L13.2143 21.75L24.6458 10.25 " stroke ="none " stroke-width ="3.5 " stroke-linejoin ="round " fill ="none "> </ path > </ svg > < span > Inherited</ span > </ label > </ li > < li class ="tsd-filter-item "> < label class ="tsd-filter-input "> < input type ="checkbox " id ="tsd-filter-external " name ="external "/> < svg width ="32 " height ="32 " viewBox ="0 0 32 32 " aria-hidden ="true "> < rect class ="tsd-checkbox-background " width ="30 " height ="30 " x ="1 " y ="1 " rx ="6 " fill ="none "> </ rect > < path class ="tsd-checkbox-checkmark " d ="M8.35422 16.8214L13.2143 21.75L24.6458 10.25 " stroke ="none " stroke-width ="3.5 " stroke-linejoin ="round " fill ="none "> </ path > </ svg > < span > External</ span > </ label > </ li > </ ul > </ div > < div class ="tsd-theme-toggle "> < label class ="settings-label " for ="tsd-theme "> Theme</ label > < select id ="tsd-theme "> < option value ="os "> OS</ option > < option value ="light "> Light</ option > < option value ="dark "> Dark</ option > </ select > </ div > </ div > </ details > </ div > </ div > < div class ="site-menu "> < nav class ="tsd-navigation "> < a href ="../modules.html "> @googlemaps/react-wrapper</ a > < ul class ="tsd-small-nested-navigation " id ="tsd-nav-container "> < li > Loading...</ li > </ ul > </ nav > </ div > </ div > </ div > < footer > < p class ="tsd-generator "> Generated using < a href ="https://typedoc.org/ " target ="_blank "> TypeDoc</ a > </ p > </ footer > < div class ="overlay "> </ div > </ body > </ html >
5+ </ div > < div class ="tsd-parameters "> < h4 class ="tsd-parameters-title "> Parameters</ h4 > < ul class ="tsd-parameter-list "> < li > < span > < span class ="tsd-kind-parameter "> props</ span > : < a href ="../interfaces/WrapperProps.html " class ="tsd-signature-type tsd-kind-interface "> WrapperProps</ a > </ span > </ li > </ ul > </ div > < h4 class ="tsd-returns-title "> Returns < span class ="tsd-signature-type "> ReactElement</ span > </ h4 > < aside class ="tsd-sources "> < ul > < li > Defined in < a href ="https://github.com/googlemaps/react-wrapper/blob/485ee3740e6a18b79d2b7e94456a45e8cf89785b/src/index.tsx#L65 "> index.tsx:65</ a > </ li > </ ul > </ aside > </ div > </ li > </ ul > </ section > </ div > < div class ="col-sidebar "> < div class ="page-menu "> < div class ="tsd-navigation settings "> < details class ="tsd-accordion "> < summary class ="tsd-accordion-summary "> < svg width ="20 " height ="20 " viewBox ="0 0 24 24 " fill ="none " aria-hidden ="true "> < use href ="../assets/icons.svg#icon-chevronDown "> </ use > </ svg > < h3 > Settings</ h3 > </ summary > < div class ="tsd-accordion-details "> < div class ="tsd-filter-visibility "> < span class ="settings-label "> Member Visibility</ span > < ul id ="tsd-filter-options "> < li class ="tsd-filter-item "> < label class ="tsd-filter-input "> < input type ="checkbox " id ="tsd-filter-protected " name ="protected "/> < svg width ="32 " height ="32 " viewBox ="0 0 32 32 " aria-hidden ="true "> < rect class ="tsd-checkbox-background " width ="30 " height ="30 " x ="1 " y ="1 " rx ="6 " fill ="none "> </ rect > < path class ="tsd-checkbox-checkmark " d ="M8.35422 16.8214L13.2143 21.75L24.6458 10.25 " stroke ="none " stroke-width ="3.5 " stroke-linejoin ="round " fill ="none "> </ path > </ svg > < span > Protected</ span > </ label > </ li > < li class ="tsd-filter-item "> < label class ="tsd-filter-input "> < input type ="checkbox " id ="tsd-filter-inherited " name ="inherited " checked /> < svg width ="32 " height ="32 " viewBox ="0 0 32 32 " aria-hidden ="true "> < rect class ="tsd-checkbox-background " width ="30 " height ="30 " x ="1 " y ="1 " rx ="6 " fill ="none "> </ rect > < path class ="tsd-checkbox-checkmark " d ="M8.35422 16.8214L13.2143 21.75L24.6458 10.25 " stroke ="none " stroke-width ="3.5 " stroke-linejoin ="round " fill ="none "> </ path > </ svg > < span > Inherited</ span > </ label > </ li > < li class ="tsd-filter-item "> < label class ="tsd-filter-input "> < input type ="checkbox " id ="tsd-filter-external " name ="external "/> < svg width ="32 " height ="32 " viewBox ="0 0 32 32 " aria-hidden ="true "> < rect class ="tsd-checkbox-background " width ="30 " height ="30 " x ="1 " y ="1 " rx ="6 " fill ="none "> </ rect > < path class ="tsd-checkbox-checkmark " d ="M8.35422 16.8214L13.2143 21.75L24.6458 10.25 " stroke ="none " stroke-width ="3.5 " stroke-linejoin ="round " fill ="none "> </ path > </ svg > < span > External</ span > </ label > </ li > </ ul > </ div > < div class ="tsd-theme-toggle "> < label class ="settings-label " for ="tsd-theme "> Theme</ label > < select id ="tsd-theme "> < option value ="os "> OS</ option > < option value ="light "> Light</ option > < option value ="dark "> Dark</ option > </ select > </ div > </ div > </ details > </ div > </ div > < div class ="site-menu "> < nav class ="tsd-navigation "> < a href ="../modules.html "> @googlemaps/react-wrapper</ a > < ul class ="tsd-small-nested-navigation " id ="tsd-nav-container "> < li > Loading...</ li > </ ul > </ nav > </ div > </ div > </ div > < footer > < p class ="tsd-generator "> Generated using < a href ="https://typedoc.org/ " target ="_blank "> TypeDoc</ a > </ p > </ footer > < div class ="overlay "> </ div > </ body > </ html >
You can’t perform that action at this time.
0 commit comments