[1.14.1] Example for support custom tiles sources#58
[1.14.1] Example for support custom tiles sources#58astridx wants to merge 11 commits intomaplibre:mainfrom
Conversation
|
The custom protocol you added is treating the response as array buffer while you are using the style.json file with the custom protocol. |
|
If you take a look at the |
|
Thank you very much @HarelM . I was busy the last days. I will have a closer look tomorrow. |
|
I have just updated the example. Now it is functional. |
|
Cool! The only thing missing in explanation of this example is the fonts and the tiles themselves, I guess. But there is a comment about it. |
|
Looks good to me, other than I think there's a build error due to the arrow functions in |
Thanks. Now I use normal functions. Will check the other errors next week. |
Thank you very much for the feedback. I will continue to work on the explanation next week.
I will add this, too. |
|
Hi Astrid. I think if you want to move this forward, then we need an image for this example like for the other examples too. Would you like to look into that process? |
|
@wipfli Yes, that's on my todo. I would also like to improve the texts. You probably want to publish a new release of the documentary because maplibre now has a new release? Do I still have a few days? If you are in a hurry, someone else can take over and complete the branch. |
|
No hurry. We can publish updates to the docs website whenever we want. |
|
While reworking, I noticed that this example only works if the addressing of the demotiles fits.
Is it possible to place the demotiles there ( |
|
I'm not sure demotiles can be there as this is hosted in maplibre.org. |
|
@astridx any chance to push this forward? Sorry for the support late respond... |
|
I created this example by pointing to the Demotiles repo on my local computer. This worked for me locally. I have not found a solution to implement this so that it works in any environment. So even where there is no local Demotiles Repo. |
I like to understand this PR: maplibre/maplibre-gl-js#30But I can't get it to work. Before I delete everything, I'll show you here. Maybe someone can explain the error in my thinking.What I did up to now:
1
I cloned the
In
maplibre-gl-jsrepo I runThe changes are applied. I checked this!
I deleted the files in the folder
distand runThe
dist-filesare newly created in thedist-folder. Everything OK so far.2
I swap to the repo
maplibre-gl-js-docsand I created the files./maplibre-gl-js-docs/docs/pages/example/custom-map.html/maplibre/maplibre-gl-js-docs/docs/pages/example/custom-map.md(This are the changed files in this draft.)
I created a symlink to the demofiles repo:
Symlink ln -s ../../../demotiles ./demotilesSo thestyles.jsonist accessible viahttp://localhost:8080/maplibre-gl-js-docs/demotiles/style.json.This is the output of my browser console.3
I have modified the files in the Demotiles Repositiory so that they are used offline if stored locally.
Do you like this example? Should I expand/change it.
At the moment this example cannot be used with a stable version, so it should be published after the next release.