Adventure Riding NZ

New Zealand's Adventure Riding community, free GPS track downloads, forums, and more!

Reply To: Map of every unsealed road in New Zealand

Home Forums Riding Where to ride Map of every unsealed road in New Zealand Reply To: Map of every unsealed road in New Zealand

#37522
Eddieb
Keymaster
  • Town/City: Tauranga
  • Bike: BMW R100GS

Topics Created: 1,535
Replies posted: 3,079

Rank: Round the World Adventure Globetrotter

@scott-palmer @eric_yu

So the issue will displaying the All Unsealed Roads maps is that the file size is too large. The free Google Maps Javascript API which I use for the other maps has a limit of 3mb for KML files, even after splitting the data into North and South Islands the smallest file was still 4mb.

So far I think I’ve found 3 possible options

  1. GEOXML https://github.com/geocodezip/geoxml3 is hailed as the thing to implement in this situation, though the most recent update on that project was 4 years ago it’s supposed to still be good. I’d just have to figure out how t omake it work.
  2. Using the KML networklink feature. Essentially you break the data up into a bunch of smaller files, then call a master file in the Maps Javascript api which pulls in all the smaller files. I wasn’t able to find any evidence of this working, but I found references to doing it a few times.
  3. The 3rd is Openlayers https://openlayers.org/en/v5.3.0/examples/kml.html, though now that I have looked at this a bit I don’t think it will be workable.