![]() Creating User & Generating Access Keys via AWS IAM.In this case, we set them to the Tokyo area. Change "center" and "zoom" to the area you want to display. Specify the uploaded Amazon S3 URL in "style." “URL" is the URL of style.json. Modify only the "/packages/maplibre-provider/demo/index.html" of the demo. You are now ready to host your data for distribution on Amazon S3!įinally, we will display the COMTiles in MapLibre GL JS. Upload style.json, tiles.json, and fonts directories to the assets directory. ![]() This time, we created "assets" and "data" directories. This is the directory structure of the target bucket. Trying Out Various Settings for Amazon S3 Publishing This time, I used the public settings for the sample, but I recommend limited public settings for production use. Set the target bucket of Amazon S3 to the public. Upload the COMTiles, style.json, and tiles.json directories created in the previous step, and for the fonts directory, upload "/packages/maplibre-provider/debug/assets/fonts." Next, host the COMTiles, style.json, tiles.json, and fonts directories on Amazon S3. This completes the creation of style.json and tiles.json! We chose "zimmermannpeter/com-tiles" because as of December 2022, the original " mactrem/com-tiles" is still under pull request and has improved documentation and MapLibre GL JS display environment.Įnter fullscreen mode Exit fullscreen mode
0 Comments
Leave a Reply. |