visgl / visgl/react-google-maps

[Feat] Add new property allows user enable/disable cross when dragging of component AdvancedMarker

Open
#835 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
1.9k
Forks
193
Avg merge
3d 16h
Merged PRs (30d)
13

Description

Target Use Case

Have a nice day everyone,

I’m facing an issue where I cannot remove the X icon on the AdvancedMarker, which appears when dragging or even hovering (please see the attached image).

According to the Google Maps Platform documentation (https://developers.google.com/maps/documentation/javascript/reference/marker#MarkerOptions.crossOnDrag), the crossOnDrag property should disable the cross that appears beneath the marker when dragging. However, it seems this option is not directly supported for AdvancedMarker or documented in the @vis.gl/react-google-maps library as well as Google Maps Platform documentation AdvancedMarker (https://developers.google.com/maps/documentation/javascript/reference/advanced-markers) .

Screenshot 2025-09-24 at 09 56 25
Proposal

Add new property allows user enable/disable cross on dragging

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the AdvancedMarker component and reviewing the Google Maps AdvancedMarker reference linked in the issue, alongside the crossOnDrag documentation. Determine how the requested enable/disable property should affect the marker's dragging behavior, then verify that the cross can be controlled through the public component API.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend, web-dev
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.