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

Announcements

News and Announcements icon
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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 549 Most Valuable Professional

#2
Kalathiya Profile Picture

Kalathiya 225 Super User 2026 Season 1

#3
Haque Profile Picture

Haque 224

Last 30 days Overall leaderboard