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't render raster layers. #315

Closed
javierbyte opened this issue Mar 25, 2016 · 1 comment
Closed

Can't render raster layers. #315

javierbyte opened this issue Mar 25, 2016 · 1 comment

Comments

@javierbyte
Copy link

Hello!

I'm trying to render a raster layer on iOS. A new project with a freshly installed react-native-mapbox-gl.

I created this styleURL:
https://gist.github.com/javierbyte/162ea8a03fac49f0d320

It's just the wikipedia logo on top of a white map.

It works well on browsers:
https://jsbin.com/tirecopelo/edit?html,output

But although I can render the white map on iOS, the logo never appears, and xcode logs this:
2016-03-24 21:33:59.339 dashboard[432:124435] [WARNING] {Map}[Render]: can't find source for layer 'overlay'

overlay is defined in sources as:

      "overlay": {
          "type": "image",
          "url": "https://www.wikipedia.org/portal/wikipedia.org/assets/img/Wikipedia-logo-v2.png",
          "coordinates": [
              [-80.425, 46.437],
              [-71.516, 46.437],
              [-71.516, 37.936],
              [-80.425, 37.936]
          ]
      }

And requested in layers as:

        {
            "id": "overlay",
            "source": "overlay",
            "type": "raster"
        }

Is raster layers and unsupported feature for mobile?

Thanks!

@friedbunny
Copy link
Contributor

Is raster layers and unsupported feature for mobile?

Georeferenced raster overlays aren’t supported yet in native, but raster tile layers are. This means that you could upload a GeoTIFF to Mapbox and then use the resulting raster tileset in a native-compatible style.

irvingchenn pushed a commit to studyroz/react-native-mapbox-gl that referenced this issue Jun 9, 2020
childview check for instanceof ViewGroup in RCTMGLMapView
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

2 participants