--- title: MapMarker description: MapMarker represents a specific location or point of interest on a map. api_version: 2025-07 api_name: checkout-ui-extensions source_url: html: >- https://shopify.dev/docs/api/checkout-ui-extensions/2025-07/components/interactive/mapmarker md: >- https://shopify.dev/docs/api/checkout-ui-extensions/2025-07/components/interactive/mapmarker.md --- # Map​Marker MapMarker represents a specific location or point of interest on a map. ## MapMarkerProps * accessibilityLabel string required The accessibility label of the marker. * latitude number required The latitude of the marker. * longitude number required The longitude of the marker. * blockSize number The block size of the icon. This property is only used when the `icon` property is set. * clusterable boolean Set to `true` to allow grouping the marker in clusters when zoomed out. * icon string The URL of the icon to use for the marker. * inlineSize number The inline size of the icon. This property is only used when the `icon` property is set. * onPress () => void Callback that is run when the marker is pressed. * overlay RemoteFragment An overlay component to render when the user interacts with the component. ### Examples * #### Basic MapMarker ##### React ```tsx import { reactExtension, Map, MapMarker, } from '@shopify/ui-extensions-react/checkout'; export default reactExtension( 'purchase.checkout.block.render', () => , ); function Extension() { return ( ); } ``` ##### JS ```js import {extension, Map, MapMarker} from '@shopify/ui-extensions/checkout'; export default extension('purchase.checkout.block.render', (root) => { const map = root.createComponent( Map, { apiKey: 'YOUR_API_KEY', accessibilityLabel: 'Map', latitude: -28.024, longitude: 140.887, zoom: 4, }, [ root.createComponent(MapMarker, { latitude: -28.024, longitude: 140.887, accessibilityLabel: 'Map marker for Innamincka, Australia', }), ], ); root.appendChild(map); }); ``` ## Preview ![](https://shopify.dev/images/templated-apis-screenshots/checkout-ui-extensions/2025-07/mapmarker-default.png) ## Best Practices * If your markers are interactive, make sure that the selected marker's icon is different from the rest of the non-selected markers. * If there are a large number of markers obscuring important features of the map, set the markers to clusterable to help increase the readability of the map. ## Related [Component - Map](map) [Component - MapPopover](mappopover)