capacitor-plugins icon indicating copy to clipboard operation
capacitor-plugins copied to clipboard

[capacitor/google-maps]: allow to set text inside the marker.

Open ngmiduc opened this issue 1 year ago • 2 comments

Feature Request

Plugin

capacitor/google-maps

Description

Allow more customizations for markers on the google-map plugin. Allowing to set the text inside the marker would be useful for displaying information on the map.

Platform(s)

ios/web/android

Preferred Solution

use the label attribute like on the map class from google maps original API or in the javascript integration of google maps.

{
      id: marker.id,
      position: {
        lat: marker.latitude,
        lng: marker.longitude,
      },
      label: {
        fontFamily: 'Manrope',
        fontSize: '14px',
        fontWeight: '600',
        color: 'white',
        className: 'marker-label',
        text: marker.text
      },
    }

ngmiduc avatar Jun 21 '23 15:06 ngmiduc

labels are only available for web platform, native iOS and Android SDKs don't support that feature.

Adding type: feature request label to the issue to consider the feature internally for web platform.

jcesarmobile avatar Aug 22 '23 17:08 jcesarmobile

Hello. It would be very helpful to be able to place a label attached to the marker and thus not have to click on it. Similar to the web version.

That would allow for more agile handling in certain situations where with a quick look at the map with its markers, you can quickly know what everything is.

Thank you so much.

perpifran avatar Mar 03 '24 15:03 perpifran