I am using Leaflet vectorgrid plugin with a folder of .pbf files(created from a .mbtiles file using mbutil) to load a map using Apache server.However,when I load the map on the browser,I take this error:
firstname.lastname@example.org:1 Uncaught Error: Unimplemented type: 6 at Pbf.skip (email@example.com:1:16761) at Pbf.readFields (firstname.lastname@example.org:1:14113) at new VectorTile$1 (email@example.com:1:5519) at FileReader.<anonymous> (firstname.lastname@example.org:1:31611)
I found similar errors to be appear due to the fact that .pbf files are gzipped and the browser doesn't know it,when trying to process them. It is suggested to add a .htaccess file inside the .pbf folder,using this code:
<Files "*.pbf"> Header set Content-Encoding: gzip </Files>
so as Apache tells the browser that the files are gzipped,so as to uncompress them. However,it doesn't work for me,I still take the above error message.
What else should I try?