Custom Google Map Markers with Modal forms

We have a Radzen map with custom markers etc.

We would like to replace the Google Info windows with a Radzen modal form when the marker is clicked however because the markers are customized and based on google.maps.Marker the usual method does not work.
This is an extract of current code

 addMapMarker(map, markerProps) {       
        var marker = new google.maps.Marker({
            position: markerProps.position,
            map: map,
            draggable: false,
            optimized: false,
            title: markerProps.title
        if (markerProps.icon) {
        if (markerProps.content) {
            var information = new google.maps.InfoWindow({
                content: markerProps.content
        marker.addListener('click', function (event) {
  , marker);
            //, { parameters: {}, title: 'Marked Clicked Modal' });
            // () { return; });
        return marker;

Can you offer any suggestions if this is possible and if so how?

Hi @mumfie,

It isn't possible to open a Radzen Blazor dialog from JavaScript.

1 Like

Hi @korchev,
Actually, it's an Angular Modal in the same app but I assume the answers the same.
Thanks for your quick response.

Hi @mumfie,

My bad. I missed the topic category. The answer isn't the same for Angular - you can open a dialog to a page:, { parameters: {Id: event.Id}, title: 'Edit Order' });

The key is that the open method needs an existing Angular component - either a Radzen page or a custom one.

1 Like

Thanks @korchev,
I did initially try that but could not get it to work.
The code I posted above is in the xxx.component.ts file. I have now added dialogService as a parameter to addMapMarker( and it appears to be working. (only minimal testing done to date).