Title: Draw a route on the map · Issue #537 · fullstackreact/google-maps-react · GitHub
Open Graph Title: Draw a route on the map · Issue #537 · fullstackreact/google-maps-react
X Title: Draw a route on the map · Issue #537 · fullstackreact/google-maps-react
Description: I would like to know if it is possible to draw a route on the map similar to the image below: I didn't find anything from this library saying anything about it, if anyone can help me please. My code: import React, { useRef, useState, use...
Open Graph Description: I would like to know if it is possible to draw a route on the map similar to the image below: I didn't find anything from this library saying anything about it, if anyone can help me please. My cod...
X Description: I would like to know if it is possible to draw a route on the map similar to the image below: I didn't find anything from this library saying anything about it, if anyone can help me please. My...
Opengraph URL: https://github.com/fullstackreact/google-maps-react/issues/537
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Draw a route on the map","articleBody":"I would like to know if it is possible to draw a route on the map similar to the image below:\r\n\r\n\r\n\r\nI didn't find anything from this library saying anything about it, if anyone can help me please.\r\n\r\nMy code: \r\n```\r\n\r\nimport React, { useRef, useState, useCallback } from 'react';\r\nimport { Map, GoogleApiWrapper, Marker, Polygon, Listing, Polyline, MapWithADirectionsRenderer } from 'google-maps-react';\r\n\r\nexport const Geo = ({ google }) => {\r\n const mapRef = useRef(null);\r\n\r\n return (\r\n \u003c>\r\n \u003cMap \r\n ref={mapRef}\r\n\t\t google={google}\r\n\t\t containerStyle={{\r\n height: '100vh',\r\n width: '100%',\r\n }}\r\n initialCenter={{\r\n lat: -23.49111858736318,\r\n lng: -46.711258044347865\r\n }}\r\n zoom={17}\r\n\t >\r\n \u003cMarker name={'Your position'}/>\r\n \u003c/Map>\r\n \u003c/>\r\n );\r\n};\r\n\r\nexport default GoogleApiWrapper({\r\n apiKey: \"key\", // google maps key\r\n})(Geo);\r\n```\r\n","author":{"url":"https://github.com/daniimd","@type":"Person","name":"daniimd"},"datePublished":"2022-07-06T16:29:22Z","url":"https://github.com/fullstackreact/google-maps-react/issues/537"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:808268e0-442c-f4be-be64-ff6153908356 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E320:24E657:B9142D:F95FCB:6AFE6A69 |
| html-safe-nonce | e7b8ad02df6432dfb9537704bce29c291d759d3516cea617b32a8fd5e374ffdc |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMzIwOjI0RTY1NzpCOTE0MkQ6Rjk1RkNCOjZBRkU2QTY5IiwidmlzaXRvcl9pZCI6IjcyODQwNzQ0NTY3MTQwNjE4NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 92c30c9cd5589127c1a4f56cce7bc97bf38c9bb110b3a14f7163f8b659dd3105 |
| hovercard-subject-tag | issue:1296095547 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/fullstackreact/google-maps-react/537/issue_layout |
| twitter:image | https://opengraph.githubassets.com/fd8b94ee7e1ed10a68fcd3d8edcf467c258418b42958a8c6ac6f7d36c3b7549e/fullstackreact/google-maps-react/issues/537 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/fd8b94ee7e1ed10a68fcd3d8edcf467c258418b42958a8c6ac6f7d36c3b7549e/fullstackreact/google-maps-react/issues/537 |
| og:image:alt | I would like to know if it is possible to draw a route on the map similar to the image below: I didn't find anything from this library saying anything about it, if anyone can help me please. My cod... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | daniimd |
| hostname | github.com |
| expected-hostname | github.com |
| None | b3c0f155eafc27e60db6e254d1ffff0e072e9ab3b4018a5ee518797c19d89f86 |
| turbo-cache-control | no-preview |
| go-import | github.com/fullstackreact/google-maps-react git https://github.com/fullstackreact/google-maps-react.git |
| octolytics-dimension-user_id | 16674738 |
| octolytics-dimension-user_login | fullstackreact |
| octolytics-dimension-repository_id | 57070925 |
| octolytics-dimension-repository_nwo | fullstackreact/google-maps-react |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 57070925 |
| octolytics-dimension-repository_network_root_nwo | fullstackreact/google-maps-react |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 4a10310af51a1bfffbedc4fd81cb582acf0cb0ff |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width