GithubHelp home page GithubHelp logo

indoorequal / mapbox-gl-indoorequal Goto Github PK

View Code? Open in Web Editor NEW
28.0 4.0 5.0 6.45 MB

A maplibre-gl.js plugin to display data from indoor=

License: BSD 3-Clause "New" or "Revised" License

JavaScript 96.29% CSS 0.43% HTML 3.27%
openstreetmap mapbox-gl-js mapbox-gl-js-plugins indoorequal indoor indoor-map maplibre-gl-js

mapbox-gl-indoorequal's People

Contributors

dependabot[bot] avatar francois2metz avatar joxit avatar panieravide avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

mapbox-gl-indoorequal's Issues

Conspicuous tile boundaries

Hi there,
I've noticed that there are a few locations that are on tile boundaries which show clear lines on the indoor maps.
An example here: https://indoorequal.org/#map=17.67/-0.176206/-78.478942
image
and here:
https://indoorequal.org/#map=17.04/35.712996/139.776567&level=0
image

They are more or less obvious at different zoom levels, but are not particularly visually appealing.
Is this due to a limitation of the mapbox platform, or is there something I can do to remedy this?
Thanks

require is not defined

Hi.
require() is called, but not clearly defined.
Is it mandatory to use RequireJS or a specific web browser ?
A full index.html example would be welcome.

List of class for the poi layer

  • shop
  • town_hall
  • [ ] golf No icon needed
  • fast_food
  • [ ] park No icon needed
  • bus
  • railway
  • aerialway
  • entrance
  • campsite
  • laundry
  • greengrocer
  • grocery
  • library
  • college
  • lodging
  • pastry
  • post
  • cafe
  • school
  • alcohol_shop
  • bar
  • [ ] harbor No icon needed
  • car
  • hospital
  • [ ] cemetery No icon needed
  • [ ] attraction No icon needed
  • beer
  • music
  • stadium
  • art_gallery
  • clothing_store
  • swimming
  • [ ] castle No icon needed
  • bank
  • exhibit
  • craft
  • any other values not mapped

SOURCE_ID and layerId as parameters

Enjoying your mapbox indoor plugin using an alternative data sources, it would be convenient to define an other possible SOURCE_ID, and also an other possible layerId to parse levels.

Example of use:

            const indoorEqual = new IndoorEqual(map,
                {
                    url: 'http://localhost/data/france_mbtiles.json',
                    sourceId: "france",
                    layerId: "osm-indoor",
                    layers: layers
                }
            );

F.Y.I., what I do locally in src/index.js:

const DEFAULT_SOURCE_ID = 'indoorequal';
const DEFAULT_LAYER_ID = 'osm-indoor'

and then in IndoorEqual constructor block:

    this.sourceId = opts.sourceId ?? DEFAULT_SOURCE_ID;
    this.layerId = opts.layerId ?? DEFAULT_LAYER_ID;

and so on...

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.