Skip to content

fix static url #617

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions docs/maps/maps.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -322,9 +322,9 @@ const popup = Radar.ui.popup({

### Feature

Radar Map Features are custom lines and geometries that can be styled and interacted with on the map.
Radar Map Features are custom lines and geometries that can be styled and interacted with on the map.

The primary format for a map feature is a [GeoJSON Feature](https://datatracker.ietf.org/doc/html/rfc7946#section-3.2) (Polygon, MultiPolygon, and LineString are supported).
The primary format for a map feature is a [GeoJSON Feature](https://datatracker.ietf.org/doc/html/rfc7946#section-3.2) (Polygon, MultiPolygon, and LineString are supported).

Feature ids should be unique, and properties can be used for attaching additional metadata to the features.

Expand Down Expand Up @@ -572,7 +572,7 @@ Add a `Marker` with a custom image to the map by specifying the image URL.

// add marker to map at map center
Radar.ui.marker({
url: 'https://radar.com/static/image/logo.png',
url: 'https://static.radar.com/images/logo.png',
width: '48px',
height: '48px',
popup: {
Expand Down Expand Up @@ -1164,7 +1164,7 @@ const RadarMap = () => {
const mapRef = useRef(null);

useEffect(() => {
if (mapRef.current) return;
if (mapRef.current) return;

Radar.initialize('prj_live_pk_...');

Expand Down