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

Error: layers[26].filter[2][2][0]: expected one of [==, !=, >, >=, <, <=, in, !in, all, any, none] #6

Open
bean-fidhleir opened this issue Aug 8, 2017 · 0 comments

Comments

@bean-fidhleir
Copy link

bean-fidhleir commented Aug 8, 2017

Apologies if this isn't the best place for this.

Trying to do a quick-and-dirty test of the full strength, I unpacked the USA.mbtiles to z/x/y .pbf files, added a "tiles:" line rather than a "url:", and inserted the positron .json file in place of the original style used for the countries in index.html:

<script> // mapboxgl.accessToken = 'pk.your-own-code-here-for-online-maps'; mapboxgl.accessToken = 'NOT-REQUIRED-WITH-YOUR-VECTOR-TILES-DATA';

var mappath = "http://momcat/Maps/TILES" ;
var style = {
"version": 8,
"name": "Positron",
"metadata": {
"mapbox:autocomposite": false,
"mapbox:type": "template",
"mapbox:groups": {
"b6371a3f2f5a9932464fa3867530a2e5": {
"name": "Transportation",
"collapsed": false
},
"a14c9607bc7954ba1df7205bf660433f": {
"name": "Boundaries"
},
"101da9f13b64a08fa4b6ac1168e89e5f": {
"name": "Places",
"collapsed": false
}
},
"openmaptiles:version": "3.x",
"openmaptiles:mapbox:owner": "openmaptiles",
"openmaptiles:mapbox:source:url": "mapbox://openmaptiles.4qljc88t"
},
"center": [
10.184401828277089,
-1.1368683772161603e-13
],
"zoom": 0.8902641636539237,
"bearing": 0,
"pitch": 0,
"sources": {
"openmaptiles": {
"type": "vector",
// "url": "https://free.tilehosting.com/data/v3.json?key={key}"
"tiles": ["http://momcat/Maps/TILES/{z}/{x}/{y}.pbf"]
}
},
"sprite": "https://openmaptiles.github.io/positron-gl-style/sprite",
"glyphs": "https://free.tilehosting.com/fonts/{fontstack}/{range}.pbf?key={key}",
"layers": [
{
"id": "background",
"type": "background",
"paint": {
"background-color": "rgb(242,243,240)"
}
},
...usw.

Opening the index page with firebug turned on, I see that the 3 GETs succeeded, but then it halted with the error msg in the title line before it did more than put the controls onto the screen.

The expansion is:
Style/r</< http://momcat/Maps/mapbox-gl.js:114:610
forEach self-hosted:251:13
Style/r< http://momcat/Maps/mapbox-gl.js:114:582
bound self-hosted:919:17
bound bound self-hosted:1000:17

I've no clue whether it's a bug in the GL code, a bug in the tile, or some dopey error I made in modifying the index file.

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