Giter VIP home page Giter VIP logo

Comments (10)

aberenyi avatar aberenyi commented on June 24, 2024

It looks like the returned value is an array even if the label is defined as a single string field (i.e. without a function like to-string).

["get", "<attributeName>"]

Moreover, there are a lot of other functions available, like length, match, any, etc.

from ol-mapbox-style.

ahocevar avatar ahocevar commented on June 24, 2024

Have you tried this with latest master? #86 added support for these expressions, so your styles should work now.

from ol-mapbox-style.

aberenyi avatar aberenyi commented on June 24, 2024

That's great news.

Sadly I could not try the latest master as both npm i ol-mapbox-style@latest and npm i in a freshly cloned repo fails with

./util/has_lib.sh: line 31: pkg-config: command not found

on macOS.

from ol-mapbox-style.

aberenyi avatar aberenyi commented on June 24, 2024

Sorry, I meant npm i boundlessgeo/ol-mapbox-style not npm i ol-mapbox-style@latest.

from ol-mapbox-style.

ahocevar avatar ahocevar commented on June 24, 2024

That's the canvas dev dependency. Try npm install --production ol-mapbox-style@beta.

from ol-mapbox-style.

aberenyi avatar aberenyi commented on June 24, 2024

After installing pkg-config and cairo w/ Homebrew both install methods work just fine.

However, I'm back to square one, as I get the same error even with [email protected].

from ol-mapbox-style.

ahocevar avatar ahocevar commented on June 24, 2024

Can you share a validated style document that triggers the error?

from ol-mapbox-style.

aberenyi avatar aberenyi commented on June 24, 2024

Sure thing - style.json.zip.

Validates fine against mapbox-gl-style-spec v12.0.0.

from ol-mapbox-style.

ahocevar avatar ahocevar commented on June 24, 2024

Thanks @aberenyi. I just pushed d605f0d and released v3.0.0-beta.9. The problem was that we tried to convert expressions to expressions.

Can you please verify that things work now and report back?

from ol-mapbox-style.

aberenyi avatar aberenyi commented on June 24, 2024

Works like a charm - many thanks @ahocevar!

from ol-mapbox-style.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.