googlemaps / googlemaps/react-native-navigation-sdk

[Feature request]: Option to Adjust Custom Marker Size

Open
#432 1 comment 0 reactions 1 assignee Claimed by @illuminati1911 View on GitHub
priority: p3 type: feature request
Dominant language
TypeScript
Stars
227
Forks
38
Avg merge
5d 7h
Merged PRs (30d)
10

Description

### Is there an existing issue for this?

- [x] I have searched the existing issues

### Use case

Currently, when using a custom image as a marker in @googlemaps/react-native-navigation-sdk, the image appears very small and does not provide sufficient visibility or customization.

Expected Behavior:

- A property or method should be introduced to allow developers to specify a custom size for the custom marker image.

- This could be an additional option when adding a marker, such as iconSize or markerSize, which would allow users to scale the image to their preferred size.

It would be helpful if we could adjust the size of custom markers like this:
```
mapViewController.addMarker({
position: { lat: latitude, lng: longitude },
title: 'Your Location',
icon: customImage,
iconSize: { width: 50, height: 50 }, // New property to adjust size
});

```

Or any other better Approach

### Proposal

![Image](https://github.com/user-attachments/assets/07dbbf18-2707-48f1-bd86-a318ac27bb05)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.