Giter VIP home page Giter VIP logo

Comments (8)

ahocevar avatar ahocevar commented on September 26, 2024

OpenLayers uses browser (or web) fonts for font rendering, but the Mapbox Style format uses fonts in PBF/SDF encoding. ol-mapbox-style tries to download the font from Google Fonts. If it's not available there, you need to make sure that the map page loads all required fonts.

from ol-mapbox-style.

ssisman14 avatar ssisman14 commented on September 26, 2024

thank you for your help.
I prepared a vector tile in ArcGIS. I'm trying to view using the mapbox style.
The articles on the map are displayed successfully on the ArcGIS portal. but when I use the mapbox style, I keep experiencing problems in viewing.

ArcGıs VectorTile ===> http://hizliresim.com/vP59Om

ol-mapbox-style ===> http://i.hizliresim.com/lZjlJB.jpg

best regards

from ol-mapbox-style.

ahocevar avatar ahocevar commented on September 26, 2024

The links you provided above do not show anything. Please update them or embed the images in your comment. Also, make sure you are using v3.0.1 of ol-mapbox-style, because older versions have incorrect font handling.

from ol-mapbox-style.

ssisman14 avatar ssisman14 commented on September 26, 2024

ArcGıs VectorTile ===> arcmap-vectortile

ol-mapbox-style ===> mapbox-vector-tile

from ol-mapbox-style.

ahocevar avatar ahocevar commented on September 26, 2024

How are you using ol-mapbox-style? If you are using the applyStyle() function, make sure you configure the VectorTile layer with declutter: true. Can you share the relevant part of your code?

from ol-mapbox-style.

ssisman14 avatar ssisman14 commented on September 26, 2024

thank you for your help.

I solved the problem. declutter: true it worked

best regards

from ol-mapbox-style.

tom62291 avatar tom62291 commented on September 26, 2024

OpenLayers uses browser (or web) fonts for font rendering, but the Mapbox Style format uses fonts in PBF/SDF encoding. ol-mapbox-style tries to download the font from Google Fonts. If it's not available there, you need to make sure that the map page loads all required fonts.

Hi, do you have any coding example to load custom fonts in pbf format?

from ol-mapbox-style.

ahocevar avatar ahocevar commented on September 26, 2024

You cannot use pbf fonts with OpenLayers or ol-mapbox-style. You need to find the font in a web font format like e.g. woff2.

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.