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

Mapbox styles When i add custom style url it give blank screen on borders of custom style url #3078

Closed
sabarikobagapau opened this issue Sep 27, 2023 · 5 comments
Labels
upstream the bug source is a bug in native mapbox gl

Comments

@sabarikobagapau
Copy link

Mapbox Implementation

Mapbox

Mapbox Version

default

Platform

iOS, Android

@rnmapbox/maps version

10.0.15

Standalone component to reproduce

import React from 'react';
import {
  MapView,
  ShapeSource,
  LineLayer,
  Camera,
} from '@rnmapbox/maps';

const aLine = {
  type: 'LineString',
  coordinates: [
    [-74.00597, 40.71427],
    [-74.00697, 40.71527],
  ],
};

class BugReportExample extends React.Component {
  render() {
    return (
      <MapView  style={{flex: 1}}
              styleURL= {'mapbox://styles/*********************'}

>
        <Camera centerCoordinate={[-74.00597, 40.71427]} zoomLevel={14} />
        <ShapeSource id="idStreetLayer" shape={aLine}>
          <LineLayer id="idStreetLayer" />
        </ShapeSource>
      </MapView>
    );
  }
}

Observed behavior and steps to reproduce

Screenshot 2023-09-27 at 10 35 33 AM
Screenshot 2023-09-27 at 10 35 21 AM

Expected behavior

when i use satelite style its working fine but i use default style url it renders like above screen shote both platforms and tested it physical devices also please help

Notes / preliminary analysis

No response

Additional links and references

No response

@mfazekas
Copy link
Contributor

Sorry we don't offer free support for this package. I can't repro your issue, because you haven't included full style url.

Try to look into the device logs, to see if there is any related mapbox lines.

@mfazekas mfazekas added the upstream the bug source is a bug in native mapbox gl label Sep 27, 2023
@sabarikobagapau
Copy link
Author

Hi @mfazekas please help with this i debug it devices logs it comes like this. "Map load failed: {tile-id={x=383483, y=235906, z=19}, type=tile, message=Failed to load tile: Unable to resolve host "api.mapbox.com": No address associated with hostname, begin=595628096, source-id=mapbox://*******.asim_20_g}"
Screenshot 2023-09-28 at 10 12 49 AM

@mfazekas
Copy link
Contributor

Seems to me an environment error not a mapbox one. I usually see unable to resolve api.mapbox.com, when my laptop changed wifi and android emulator stuck with the old one. Restarting the machine helps in those cases.

@sabarikobagapau
Copy link
Author

Hi @mfazekas when i use custom style url it occurs only otherwise woking fine in both environements

@sabarikobagapau
Copy link
Author

sabarikobagapau commented Oct 6, 2023

@mfazekas mapbox://styles/aerosimple/clmyyud9802u301qu2yadcuco. please help i given that style url it give blank screen on border please help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
upstream the bug source is a bug in native mapbox gl
Projects
None yet
Development

No branches or pull requests

2 participants