Reply To: Map of every unsealed road in New Zealand

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

#10707

Eddieb
Keymaster
  • Location: Hamilton
  • Bike: Suzuki DR650 ADV
  • Rank: 1200cc Rider

Hi @isaac_bain

Are you able to do the leaflet webmap in separate North and South Island versions?

I tried embedding your 5km metal file into a google map but it didn’t work and I’ve no idea why, but the leaflet maps obviously do. However they take an age to load as they are quite data heavy.
Is there any way to reduce the max points per road? cutting some of the longer roads down in size could significantly reduce the filesize and hence load time.

Below is a sample of KML data that I know works for overlaying on a Google Map.
This is the KML code for the Castlepoint Beach track as displayed in the map on the North Island tracks page.

<Placemark>
<name>Castle Point Beach</name>
<description>
<![CDATA[
<p style="text-align:left">Short but stunningly scenic</p>]]>
</description>
<styleUrl>#sand</styleUrl>
<LineString>
<altitudeMode>relative</altitudeMode> 
<coordinates>
176.2191230,-40.9081980,-4.6700000 
176.2192920,-40.9080800,-3.7100000 
176.2194410,-40.9075700,-4.6700000 
176.2194220,-40.9075820,-3.2300000 
176.2197990,-40.9070920,-3.7100000 
176.2203790,-40.9066800,-3.2300000 
176.2210150,-40.9063410,-3.2300000 
176.2218310,-40.9061640,-2.2700000 
176.2222150,-40.9060810,-2.2700000 
176.2230170,-40.9060860,-1.7900000 
176.2234100,-40.9061180,-2.2700000 
176.2241460,-40.9062110,-2.7500000 
176.2245100,-40.9062420,-2.7500000 
176.2248910,-40.9061640,-3.7100000 
176.2284650,-40.9033460,0.1400000 
176.2283870,-40.9027720,-1.7900000 
176.2273090,-40.9025850,1.1000000                             
</coordinates>
</LineString>
</Placemark>