24
Views
4
Comments
[Google Maps Library] Apply CSS in Custom Marker
google-maps-mobile
Reactive icon
Forge asset by Labs

Hello everyone,

I want to apply CSS in my Custom Marker for Google Maps. Is there any way to do it?

This is the CSS code i wish to apply:

{border-radius: 25px;
  border: 2px}

Thank you!

2024-04-05 03-05-03
Kharlo Ridado

Hi @Joshua Benaya Can you please provide an OML and more context into your custom marker?

2024-03-21 06-51-55
Joshua Benaya

Hi Kharlo,

Unfortunately I can't provide the OML here.

But i want to make custom marker that use icon from URL Link, and i want to customize the marker. 


UserImage.jpg
Muhammad Khoir Al Alim Manurung

Hi @Joshua Benaya,

Can you enclose the marker in the container, then can add the style in the container

Hopefully can help thanks

2024-03-21 06-51-55
Joshua Benaya

Hello Muhammad,

Thanks for the answer! But I think I cannot enclose the marker into a container because the marker widget is not shown in the widget tree.

I'm using Markers (List of MapMarker) to show markers on my GoogleMaps. The only customization I can do now is by using MarkerOptions Attribute. 

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.