Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can I render non-geographical map tiles served by my own backend ? #1730

Open
yunusyuksel opened this issue Apr 19, 2023 · 0 comments
Open

Comments

@yunusyuksel
Copy link

yunusyuksel commented Apr 19, 2023

I need to render my own map tiles which is not based on geographical coordinate but the tiles come from point clouds.

I used the RasterSource with my url template. It fetches the tiles and display them, but in background there is still world-map. how can I remove that background default map ?

<View style={styles.container}>
        <Mapbox.MapView
          zoomLevel={0}
          styleUrl="http://192.168.2.101:3003/style.json"
          centerCoordinate={[0, 0]}
          style={styles.container}>
          <Mapbox.RasterSource
            id="myCustomTiles"
            url={'http://192.168.2.101:3003/tiles/{z}/{x}/{y}.png'}
            tileSize={512}
            maxZoomLevel={2}
            minZoomLevel={0}>
            <Mapbox.RasterLayer
              style={{rasterOpacity: 1}}
              id="customTileLayer"
              sourceID="myCustomTiles"
            />
          </Mapbox.RasterSource>
        </Mapbox.MapView>
      </View>
@yunusyuksel yunusyuksel changed the title can I render non-geographical map tiles served by my own backend ? Can I render non-geographical map tiles served by my own backend ? Apr 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant