maps icon indicating copy to clipboard operation
maps copied to clipboard

UserLocation with renderMode native does not show up on iOS

Open arnaudschlupp opened this issue 3 years ago • 2 comments

UserLocation with renderMode "native" seems to not work (the user location is not being shown, it does work with renderMode "normal") on iOS simulator (xCode Version 13.3.1 on Macbook Pro M1) + device (iPhone 13 mini) using "@rnmapbox/maps": "rnmapbox/maps#main"

Example:

import React from "react";
import MapboxGL from "@rnmapbox/maps";

export const BugIOSUserLocation = () => {
  return (
    <MapboxGL.MapView style={{ flex: 1 }} tintColor={"red"}>
      <MapboxGL.Camera />
      <MapboxGL.UserLocation
        renderMode="native"
        showsUserHeadingIndicator={true}
      />
    </MapboxGL.MapView>
  );
};

arnaudschlupp avatar Jun 13 '22 13:06 arnaudschlupp

Are you using v10? I noticed this as well. Neither of the native rendering modes on iOS show the user location marker. Looking through the source files it doesn't appear that these have been built out yet for v10 but I could be mistaken.

mysport12 avatar Jul 31 '22 05:07 mysport12

After updating to latest Installing rnmapbox-maps 10.0.0-beta.22 (was 10.0.0-beta.18), UserLocation is no longer visible on iOS simulator

bryanboyko avatar Aug 08 '22 15:08 bryanboyko

This seems to work for me just fine with latest version - beta.43

mfazekas avatar Sep 29 '22 20:09 mfazekas