Giter Club home page Giter Club logo

Comments (2)

alongsang avatar alongsang commented on September 9, 2024

the "@com-tiles/maplibre-provider" already support raster COMTiles, just run the demo with raster COMTiles

from com-tiles.

jackcjp avatar jackcjp commented on September 9, 2024

Could you please share a small demo or example? I have a small demo, it doesnot work without any error.
Here is the html:

<html>
    <head>
        <title>COMTiles MapLibre Example</title>
        <meta charset="utf-8"/>
        <script src="https://unpkg.com/[email protected]/dist/maplibre-gl.js"></script>
        <link href="https://unpkg.com/[email protected]/dist/maplibre-gl.css" rel="stylesheet" />
        <script type='text/javascript' src="../../../com-tiles-main/packages/maplibre-provider/dist/maplibreComtProvider.js"></script>

    </head>
    <body>
        <div id="map"></div>
        <script type="text/javascript">
            console.log(comtiles);
            const aa = new comtiles.MapLibreComtProvider
            aa.register();
            // comtiles.MapLibreComtProvider.register();
            const map2 = new maplibregl.Map({
                container: "map",
                style: "https://gebase.oss-cn-beijing.aliyuncs.com/img/style.json",
                center: [0, 0],
                zoom: 0
            });
        </script>
    </body>
</html>

Could you please give me any hint? Thanks!

from com-tiles.

Related Issues (13)

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.