m-i-l-k-y-y commented on issue #943:
URL: 
https://github.com/apache/incubator-baremaps/issues/943#issuecomment-3505804025

   Thank you, I see. The issue was with import.js. I didn't modify 
data.osm.pbf. When I downloaded and imported the Shandong region data, it 
succeeded. Below are my command history; I think mine can serve as an example 
to help you use the Baremaps tool more easily. If you need to display vector 
tiles, you can't just use the import.js file in the basemap folder; you need to 
replace it. Previously, I only displayed the base map.
   
   <img width="884" height="528" alt="Image" 
src="https://github.com/user-attachments/assets/6597f0ef-5c00-460d-9cfc-97c6ce437380";
 />
   The reason was that I hadn't modified the osm.pbf file in import.js. After I 
modified it, it displayed correctly. I modified the content in import.js as 
follows:{
         "id": "openstreetmap-data",
         "needs": [],
         "tasks": [
           {
             "type": "DownloadUrl",
             "source": config.osmPbfUrl,
             "target": "data/shandong-251025.osm.pbf",
             "replaceExisting": false,
           },
           {
             "type": "ImportOsmPbf",
             "file": "data/shandong-251025.osm.pbf",
             "database": config.database,
             "databaseSrid": 3857,
             "replaceExisting": false,
             "truncateExisting": true,
           },
         ]
       },Simply replace the file downloaded from 
https://download.geofabrik.de/europe.html in the data directory. Below is my 
running command, which is completely consistent with the content in the 
documentation. In addition, I think Baremaps is really powerful. Before this, I 
always used pg_tileserv to publish vector tiles and visualize them, which I 
found very cumbersome.
   <img width="997" height="183" alt="Image" 
src="https://github.com/user-attachments/assets/178e8bbb-4a97-40eb-b68e-6607a1377f4e";
 />,My result graph is
   
   <img width="1180" height="734" alt="Image" 
src="https://github.com/user-attachments/assets/c66ea5de-7e8b-46c1-89c9-a987ed32b447";
 />
   Hopefully this will be helpful to everyone.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to