| 开发者 | hevelius |
|---|---|
| 更新时间 | 2026年4月12日 23:30 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 6.9 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
gtl/v1/routes and gtl/v1/pois) so modern front-ends can consume the data./wp-content/plugins/ or install directly through the WordPress Plugins → Add New screen.[gtlmaps] shortcode on any page: [gtlmaps id="123"] for specific route, [gtlmaps category="cycling"] for categoryGo to Settings → GTL Maps and change the "Association radius (km)" option. This controls how far a POI can be from the route polyline to be considered related.
Yes. Filter or override the localized GTLMaps.tiles JavaScript property, or dequeue gtl-front and enqueue your own script variant that sets a different tile URL/provider.
The REST endpoints rely on the WordPress REST API, which functions with or without pretty permalinks. Ensure your site can serve /wp-json/ routes.
Navigate to Routes → Add New, enter a title for your route, then scroll to the "GPX Data" meta box. Click "Choose File" to upload your GPX file. Once uploaded, the plugin automatically computes distance, elevation gain/loss, and bounding coordinates. Click "Publish" to make the route live.
The plugin supports standard GPX 1.0 and 1.1 formats with track points (trkpt), waypoints (wpt), and route data. Files exported from popular GPS apps like Strava, Garmin Connect, Komoot, and Ride with GPS work seamlessly.
Yes! Maps automatically display above single route post content. You can also use the Route Details widget in your sidebar or the [gtlmaps] shortcode for manual placement on any page.
Go to POIs → Add New, enter the POI details including coordinates (latitude and longitude), and assign a category. POIs within the configured radius (set in Settings → GTL Maps) are automatically associated with nearby routes.
Yes! Each POI category supports custom icons. When editing a POI category, upload an SVG or PNG icon file via the Media Library. The icon will display on the map for all POIs in that category.
Yes! Use the [gtlmaps] shortcode in any page builder that supports WordPress shortcodes, including Elementor, Beaver Builder, Divi, and Gutenberg blocks.
The default tile provider is configurable via the GTLMaps.tiles JavaScript property. You can filter or override this in your theme by dequeueing the plugin's script and enqueueing your own with a different tile URL. OpenStreetMap, Mapbox, and other Leaflet-compatible providers are supported.