Home › Forums › MapPress Support › OSM – Loading delay on website
Tagged: delay, leaflet.js, osm, seo, tiles
- This topic has 6 replies, 2 voices, and was last updated 8 years ago by
Chris.
-
AuthorPosts
-
August 17, 2018 at 2:31 am #17938
Hi Chris,
did u check request method made by LeafLet.js to display tiles ?
From 2/3 sec, u have now 10 sec when it’s fast, in real it’s 12/13 sec… is there anyway to make it more fast ? Because it’s clearly not usable in business version. SEO is dead with a load time delay like this.Anyway keep it up, still nice works with last update.
Cheers
August 17, 2018 at 2:34 am #17939Hi,
I’m not seeing that. My OpenStreetMap test pages are loading in < 1 sec - but it does seem to vary based on time of day. I don't have any control over the speed at which OSM serves tiles, unless you had some suggestion? If you're still seeing slow performance, you could try Google Maps or Leaflet with Mapbox tiles (in which case you won't be using OSM).
August 17, 2018 at 5:12 am #17940Ok thx for answer….
How to use Leaflet with Mapbox tiles
Because it seems Mapbox can make some good things and manage a way to customize a little map design.Cheers
August 17, 2018 at 5:13 am #17941Just enter the Mapbox access token in the MapPress settings to use Mapbox. There are some details in the documentation.
August 18, 2018 at 1:22 pm #17944Hello,
back again with another question :
@ very beginning i ask u a way to manager API key for WordPress MU, u give me a tips using wp-config like :
/* MAPPRESS API KEY */
define(‘MAPPRESS_APIKEY’, ‘Google_API_KEY’);
define(‘MAPPRESS_APIKEY_SERVER’, ”);It work like a charm, then my new question is, can we do the same with MAPBOX ?
IN same time, i play a little with ur suggestion and it work like a charm, i make a standard and neutral skin for map, it looks much better :

Cheers
August 18, 2018 at 1:23 pm #17946Hi,
Sorry, but no, there’s no define available for the Mapbox token yet. I’ll look into adding it for a future version.
August 18, 2018 at 1:48 pm #17947Hi,
I’ve added a define for the Mapbox token. You can do it like this:
DEFINE(‘MAPPRESS_APIKEY_MAPBOX’, ‘yourtokenhere’);If you’d like to help test this, please use the contact form to contact me. Otherwise, it’ll be available in the next release.
August 18, 2018 at 1:49 pm #17942Thx i will check.
Cheers
-
AuthorPosts
- You must be logged in to reply to this topic.
