(During the test, no data is displayed on the site.
Small program introduction:
The source code of the subway route map applet is a subway route map including Beijing, Shanghai, Guangzhou, Zhengzhou, Shandong, Hangzhou and other nearly 50 cities across the country. Covers all the line maps of these cities, such as Metro Line 1 and Line 2, to help users understand and experience the city's traffic faster and more conveniently, and query the user's subway line map and subway station location. 39;s current city at a glance.
Configuration steps:
After downloading the source code of the applet, import the source code through the WeChat developer tool. It should be noted here that the template of the applet is in the src folder. Remember to select this folder when importing source code. This project is developed on the cloud and can be built without a domain name or server.
The page title of the applet is in the app.json file, open and find the 13th line under the path of pages\index\index.json and modify it.
This project has covered all cities with subways. If you only want to publish part of them, you can open data/city.js and delete the rest of the cities you don't want to add.
If you want to change it to your own city subway logo, you can change it in the images\logo\logo_bj.png folder.
Configure the URL of the subway map: Considering the convenience of updating the subway map, this project puts all the route maps on the server. After the user selects a city, the images are downloaded from the server and cached. (The cache time is 10 minutes), you need to modify the URL in the source code of the subway map to your own URL. Open data\city.js and modify metroMapUrl to your own URL.
The image storage address of the map route map is as follows: https://metroman.cn/mp/metromap/routemap_bj_cn.png
After configuring the above content, you can directly upload the review applet and publish it. Remember to add a legal domain name on the WeChat public platform.)