mapbox / mapbox-gl-draw

Draw tools for mapbox-gl-js
https://www.mapbox.com/mapbox-gl-js/example/mapbox-gl-draw/
ISC License
942 stars 590 forks source link

Mapbox Draw Toolbox Javascript in Android Studio - Blank Page #828

Closed AdinhLux closed 4 years ago

AdinhLux commented 5 years ago

Hi,

Trying to create an Android App to Draw Polygon on Mapbox, I don't find any examples with java code. So I decided to create a Webview in Android Studio to use javascript files ( https://www.mapbox.com/mapbox-gl-js/example/mapbox-gl-draw/ ).

Steps to Trigger Behavior

  1. I created an 'Assets' folder + 'www' folder
  2. I created an 'MapBoxPolygon'.html where I copied-pasted the code
  3. I tried to run the App but I got a blank screen

capture capture2

Expected Behavior

Actual Behavior

fc commented 5 years ago

Is the problem even with mapbox-gl-draw? Why not just try to get it working mapbox-gl itself first. It's likely there are JS errors and once you find out where those are you'll probably figure out what is happening.

kkaefer commented 4 years ago

not actionable