Linux 软件免费装
Banner图

Mapthread

开发者 randomwire
更新时间 2026年2月25日 17:23
捐献地址: 去捐款
PHP版本: 7.4 及以上
WordPress版本: 6.9
版权: GPLv2 or later
版权网址: 版权信息

标签

map travel gpx route hiking

下载

1.6.1 1.6.0

详情介绍:

Mapthread brings your adventures to life with interactive, auto-following maps. Perfect for travel bloggers, hiking enthusiasts, and anyone who wants to tell location-based stories that engage readers. https://www.youtube.com/watch?v=LBp_favwZVs Storytelling Maps Markers Layout Perfect For How It Works
  1. Create a post and add the Map GPX block
  2. Upload your GPX file from the media library
  3. If your GPX contains named waypoints, click Import as Map Markers to add them automatically — or insert Map Marker blocks manually at key points in your story
  4. Add coordinates and titles to any markers, then arrange them in your story
  5. Publish - the map automatically follows as readers scroll!
Examples Compatibility

屏幕截图:

  • Editor view - Map Marker block settings
  • Map desktop layout - Story on left, sticky map on right
  • Map desktop layout - Additional map styles
  • Mapthread settings - API keys for additional map providers
  • Map mobile layout - Sticky map at top (hidden by default)

升级注意事项:

1.6.1 GPX files with named waypoints can now be imported as Map Marker blocks in one click from the Map GPX block editor. 1.6.0 First official release on the WordPress.org plugin directory. 1.5.8 Adds source repository link to the plugin Description and prepends a source comment to all compiled JavaScript files to address WordPress.org review guidelines. 1.5.7 Adds an elevation chart indicator that syncs with GPX track hover — hover over the track on the map to see your position and elevation on the chart. 1.5.6 Addresses remaining WordPress.org review scanner issues: reformatted external services section with explicit Privacy Policy URLs for every service, separated third-party libraries, and added source code link in Description. 1.5.5 Addresses WordPress.org plugin review feedback: enqueues settings JS properly, documents source code location, and adds explicit service URLs and terms/privacy links for all external services. 1.5.2 Addresses WordPress.org plugin review feedback: removes CDN dependency, updates block apiVersion to 3, and expands external service documentation. 1.5.1 Fixes abrupt zoom jumps when scrolling between markers with different zoom levels in follow mode, and resolves a JS error in the elevation profile. 1.5.0 New settings page! Configure additional map providers (Mapbox, Thunderforest, JawgMaps, Stadia Maps) under Settings > Mapthread. Toggle free layers and choose from dozens of map styles. 1.3.9 GPX files with routes (not just tracks) are now supported. 1.3.8 Paste coordinates directly from Google Maps or Gaia GPS into a single field — no more splitting lat/lng manually. 1.3.7 Elevation gain/loss readings are now much more accurate — fixes overcounting on noisy GPS data. 1.3.6 Hiding the map on desktop now expands the article to full width — the restore tile floats in the corner without reserving space. 1.3.5 Scroll the page without accidentally zooming the map — use Ctrl (or ⌘ on macOS) + scroll to zoom. 1.3.4 New map dismiss button — collapse the map to a small tile and expand it again with one tap. 1.3.3 Smoother map following — camera now completes its animation after scrolling stops. 1.3.2 Bug fix for track drift when other map plugins are active on the same page. 1.3.1 Bug fix for track alignment when other map plugins are active on the same page. 1.3.0 New map viewing options! Switch between Street, Satellite, and Topographic map styles. Fullscreen mode for immersive viewing. 1.2.0 Major update with elevation profiles, emoji markers, and UI improvements. All third-party services properly attributed. 1.1.0 Adds address search and markers-only mode for enhanced flexibility. 1.0.0 Initial release of Mapthread.

常见问题:

What is a GPX file?

GPX (GPS Exchange Format) is a standard file format for GPS data. Most hiking apps, fitness trackers, and GPS devices can export GPX files.

Where do I get GPX files?

You can export GPX files from:

  • Hiking apps (Gaia GPS, AllTrails, etc.)
  • Fitness apps (Strava, Garmin Connect, etc.)
  • GPS devices (Garmin, Suunto, etc.)
  • Google Maps (via Google My Maps)

Can I use multiple GPX files in one post?

Not currently. Only the first Map GPX block per post is used.

How do I get coordinates for markers?

  • Import from GPX — if your GPX file has named waypoints, click "Import as Map Markers" in the Map GPX block to create markers automatically
  • Use the built-in address search (type any place name)
  • Paste coordinates from Google Maps (right-click a location)
  • Use coordinates from your GPS device or app

Can I import waypoints from my GPX file?

Yes, if your GPX file contains named waypoints (<wpt> elements with a <name> tag). After uploading your GPX file, the Map GPX block will show an "Import as Map Markers" button with a count of available waypoints. Clicking it creates Map Marker blocks for all waypoints not already present in the post, inserted immediately after the Map GPX block. Re-clicking is safe — already-imported waypoints are detected by coordinates and skipped.

Does it work with my theme?

Mapthread is designed for block themes. It has not been tested with classic themes.

Is there a file size limit for GPX?

We recommend GPX files under 10MB. Larger files will show a warning and may be slow to render.

Can I customize the map/track/marker colors?

Not currently. But you can set emojis for each Marker instead of the default.

How do I add more map styles?

Go to Settings > Mapthread and enter your API key for any supported provider (Mapbox, Thunderforest, JawgMaps, Stadia Maps). Then select which styles to enable. Each provider offers free tiers suitable for most blogs.

Are API keys secure?

The tile provider API keys used by Mapthread are publishable tokens designed for client-side use. Security is handled via domain restrictions configured in each provider's dashboard.

Does this work offline?

No, Mapthread requires an internet connection to load map tiles.

Where can I get support?

Post in the plugin support forum or open an issue on GitHub

Can I contribute to the plugin?

Yes! Mapthread is open source — contributions are welcome at github.com/randomwire/Mapthread

What third-party libraries does Mapthread use?

Does Mapthread connect to any external services?

Yes. Mapthread connects to third-party services to display map tiles, geocode addresses, and look up elevation data. Below is a full description of each service, what data is sent, and when. OpenStreetMap Tile Service Used for: Rendering the default "Street" map layer. When: Every time a visitor views a page containing a Mapthread map, the browser requests tile images from OpenStreetMap servers. Data sent: Tile coordinate requests (zoom level, x/y tile numbers) indicating the geographic area being viewed. The visitor's IP address is visible to OpenStreetMap servers. Terms of Use | Privacy Policy | Tile Usage Policy Esri / ArcGIS World Imagery Used for: Rendering the optional "Satellite" map layer. When: Only when the Satellite layer is enabled in Settings > Mapthread and a visitor selects it. No requests are made if the layer is disabled. Data sent: Tile coordinate requests and the visitor's IP address. Terms of Use | Privacy Policy OpenTopoMap Used for: Rendering the optional "Topographic" map layer. When: Only when the Topographic layer is enabled in Settings > Mapthread and a visitor selects it. Data sent: Tile coordinate requests and the visitor's IP address. Terms of Use / Privacy Policy Nominatim (OpenStreetMap Geocoding) Used for: Address search autocomplete when editing a Map Marker block. When: Only in the WordPress block editor when an author types into the address search field. Not triggered on the public frontend. Data sent: The search query text (partial address or place name) and the editor's IP address. Usage Policy | Privacy Policy Open-Elevation API Used for: Looking up elevation data for GPX tracks that lack elevation information. When: Server-side only — when a GPX file is uploaded that has no elevation data and the elevation profile feature is enabled. The request is made from the WordPress server to api.open-elevation.com, not from the visitor's browser. Data sent: GPS coordinates (latitude/longitude pairs) sampled from the GPX track, sent from the WordPress server's IP address. No user accounts or personal data involved. Service | Source | License (GPL-2.0) Optional Tile Providers (each requires an API key configured in Settings > Mapthread) The following services are only contacted when a site administrator has entered an API key and a visitor selects the corresponding map layer. In each case the browser sends tile coordinate requests, the configured API key/token, and the visitor's IP address.

Where can I find the source code?

The compiled JavaScript and CSS files in the build/ directory are generated from human-readable source files. The full source code is available at github.com/randomwire/Mapthread To build from source:

  1. Clone the repository
  2. Run npm install
  3. Run npm run build This uses @wordpress/scripts (webpack) to compile the source files in assets/js/ and assets/css/ into the production build/ directory.

更新日志:

1.6.1 - 2026-02-25 1.6.0 - 2026-02-23 1.5.8 - 2026-02-22 1.5.7 - 2026-02-21 1.5.6 - 2026-02-20 1.5.5 - 2026-02-20 1.5.4 - 2026-02-19 1.5.3 - 2026-02-19 1.5.2 - 2026-02-19 1.5.1 - 2026-02-17 1.5.0 - 2026-02-16 1.3.9 - 2026-02-12 1.3.8 - 2026-02-12 1.3.7 - 2026-02-11 1.3.6 - 2026-02-11 1.3.5 - 2026-02-11 1.3.4 - 2026-02-10 1.3.3 - 2026-02-09 1.3.2 - 2026-02-09 1.3.1 - 2026-02-09 1.3.0 - 2026-02-09 1.2.0 - 2026-02-09 1.1.0 - 2026-02-03 1.0.0 - 2026-02-01