-
Notifications
You must be signed in to change notification settings - Fork 1
embed maps #7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
embed maps #7
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -1,20 +1,12 @@ | ||||||
| --- | ||||||
| title: "Maps" | ||||||
| --- | ||||||
| import Map from '/snippets/components/Map.mdx' | ||||||
| import FitBoundsMap from '/snippets/components/examples/FitBoundsMap.mdx' | ||||||
| import CustomImageMarkerMap from '/snippets/components/examples/CustomImageMarkerMap.mdx' | ||||||
| import CustomLanguageMap from '/snippets/components/examples/CustomLanguageMap.mdx' | ||||||
| import CustomPopupMap from '/snippets/components/examples/CustomPopupMap.mdx' | ||||||
| import RouteMap from '/snippets/components/examples/RouteMap.mdx' | ||||||
| import PolygonMap from '/snippets/components/examples/PolygonMap.mdx' | ||||||
| import GlobeMap from '/snippets/components/examples/GlobeMap.mdx' | ||||||
|
|
||||||
| Radar Maps is a cost-effective alternative to Google Maps Platform and Mapbox. | ||||||
|
|
||||||
| For example, here's a Radar Map displaying a marker for Radar HQ: | ||||||
|
|
||||||
| <Map /> | ||||||
| <iframe src="https://cd1ab3f1-0e7e-4e88-82a5-f03c38f8ea79-00-etyxqyxe8qo8.janeway.replit.dev/" width="100%" height="500" frameBorder="0" allowFullScreen /> | ||||||
|
|
||||||
| You can also check out the [maps explorer](https://radar.com/dashboard/maps/maps-explorer/maps) in the dashboard, or check out a full-page [maps demo](https://radar.com/demo/maps) and [store locator demo](https://radar.com/demo/locator). | ||||||
|
|
||||||
|
|
@@ -359,7 +351,7 @@ Use the `map.fitToMarkers()` function to center and zoom the map to encompass al | |||||
|
|
||||||
| In the example below, clicking the map will place a new marker, and refit the map so all markers are visible. Clicking a marker will remove it. | ||||||
|
|
||||||
| <FitBoundsMap /> | ||||||
| <iframe src="https://cd1ab3f1-0e7e-4e88-82a5-f03c38f8ea79-00-etyxqyxe8qo8.janeway.replit.dev?type=fitBounds" width="100%" height="500" frameBorder="0" allowFullScreen /> | ||||||
|
||||||
| <iframe src="https://cd1ab3f1-0e7e-4e88-82a5-f03c38f8ea79-00-etyxqyxe8qo8.janeway.replit.dev?type=fitBounds" width="100%" height="500" frameBorder="0" allowFullScreen /> | |
| <iframe src="https://cd1ab3f1-0e7e-4e88-82a5-f03c38f8ea79-00-etyxqyxe8qo8.janeway.replit.dev?type=fitBounds" width="100%" height="500" style="border: none;" allowFullScreen /> |
Copilot
AI
Jul 24, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider adding sandbox and referrerpolicy attributes to the iframe for better security when embedding external content.
| <iframe src="https://cd1ab3f1-0e7e-4e88-82a5-f03c38f8ea79-00-etyxqyxe8qo8.janeway.replit.dev?type=customImageMarker" width="100%" height="500" frameBorder="0" allowFullScreen /> | |
| <iframe src="https://cd1ab3f1-0e7e-4e88-82a5-f03c38f8ea79-00-etyxqyxe8qo8.janeway.replit.dev?type=customImageMarker" width="100%" height="500" frameBorder="0" allowFullScreen sandbox="allow-scripts allow-same-origin" referrerpolicy="no-referrer" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The iframe src uses a development/temporary Replit URL that contains random identifiers. This URL will likely become invalid when the development session ends, breaking the embedded maps in production documentation.