web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Power Apps Component F...
Power Apps
Unanswered

Power Apps Component Framework : Markers click events are not working in mobile device but working in Desktop version

(0) ShareShare
ReportReport
Posted on by 42

Hello Experts,

 

We have implemented google maps PCF Control using React to draw the polygons. In this markers are displayed in the browser and clickable and able to draw the polygons. But the same thing comes to mobile, markers are displayed, and when am clicking the marker or draw the polygons is not working. I tried with so many forums and changes a lot of code and debug but I couldn't find the solution. It would be great if you can provide the solution for the mobile version and below is the code snippet.

 

<GoogleMap
            id='gMap'
            mapContainerStyle={mapStyles}
            zoom={mapZoom}
            mapTypeId={mapId}
            center={props.center}
            onLoad={(map: google.maps.Map) => {
                mapOnLoad(map);
            }}
            options={mapOptions}>
            {renderPolyline()}
            {!props.editMode && props.measurement.measurementType === MeasurementType.Manual &&
                <DrawingManager
                    onPolygonComplete={onPolygonComplete}
                    drawingMode={google.maps.drawing.OverlayType.POLYGON}
                    options={drawingmanageroptions}
                />
            }

Thanks

-Sri

I have the same question (0)
  • cchannon Profile Picture
    4,702 Moderator on at

    I don't know this GoogleMap react component specifically, but I'm guessing your problem is the difference between an "onClick" event and an "onTouch" event. The onTouch event on a mobile device is not the same thing as onClick and if you want to support both form factors, you will need to specify logic for both event types.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
Kalathiya Profile Picture

Kalathiya 428

#2
WarrenBelz Profile Picture

WarrenBelz 374 Most Valuable Professional

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 333 Super User 2025 Season 2

Last 30 days Overall leaderboard