add Test page
|
NZ Topo-Wishlist
MessagesReplacement version 2023-12-30new
Testing the Cookbook:NZTopo recipe, see NZTopo
NZTopo version 2023-01-22new
Tests use the development version of NZTopo - NZToponew
See Cookbook.NZTopo, Cookbook:/NZTopo, and https://www.topomap.co.nz/.
What it does now with zoom=13
(:nztopo gpx="https://kiwiwiki.nz/pmwiki/uploads/Trips/2015-07-03NeillForks/20150703%20Walls%20Whare%20to%20Totara%20Flats%20hut.gpx" {$:z}:)
|
|
(:nztopo gpx="https://kiwiwiki.nz/pmwiki/uploads/Trips/2015-07-03NeillForks/20150704%20Totara%20Flats%20hut%20to%20Neill%20Forks%20hut.gpx" {$:z}:)
|
|
(:nztopo gpx="https://kiwiwiki.nz/pmwiki/uploads/Trips/2015-07-03NeillForks/20150705 Neill Forks hut to Walls Whare.gpx" {$:z}:)
|
|
What I'd like it to do
All maps are at the same scale, but size fits track with a margin
Messages
nztoponew D:\Home\KiwiWiki\pmwiki\cookbook\nztoponew.php: '2023-01-22new'
markup: '/\(:nztopo\s+?((?:ll=[+-]?\d{1,2}[.]\d+[,][+-]?[1]?\d{1,2}[.]\d+)|(?:llbs=[+-]?\d{1,2}[.]\d+[,][+-]?[1]?\d{1,2}[.]\d+(?:[;][+-]?\d{1,2}[.]\d+[,][+-]?[1]?\d{1,2}[.]\d+)+)|(?:kml=(?:(?<q1>\'|\")(?:https?:\/\/.*)\k<q1>|(?<q2>\'|\"|)(?:(?:[-~,[:alnum:]\x80-\xfe]+(?:\.|\/)){0,2}[-\w\.\, !=\+\#\x80-\xfe]+\.kml)\k<q2>|https?:\/\/[^\s]*))|(?:gpx=(?:(?<q6>\'|\"|)(?:(?:[-~,[:alnum:]\x80-\xfe]+(?:\.|\/)){0,2}[-\w\.\, !=\+\#\x80-\xfe]+\.gpx)\k<q6>|(?<q7>\'|\")(?:https?:\/\/.*)\k<q7>|https?:\/\/[^\s]*))|(?:nzne=\d{7}(?:[.]\d{0,3})?[,]\d{7}(?:[.]\d{0,3})?)|(?:nzbs=\d{7}(?:[.]\d{0,3})?[,]\d{7}(?:[.]\d{0,3})?(?:[;]\d{7}(?:[.]\d{0,3})?[,]\d{7}(?:[.]\d{0,3})?)+)|(?:mapref=(?<q8>\'|\"|)(?:[ABC][A-Z][0-4]\d[ ]?\d{6})\k<q8>)|(?:kml2=(?:(?<q3>\'|\")(?:https?:\/\/.*)\k<q3>|https?:\/\/[^\s]*))|(?:kml3=(?:(?<q4>\'|\")(?:https?:\/\/.*)\k<q4>|https?:\/\/[^\s]*))|(?:kml4=(?:(?<q5>\'|\")(?:https?:\/\/.*)\k<q5>|https?:\/\/[^\s]*)))\s*?(?:(height=\d{1,5}(?:px)?)\s*|(width=\d{1,5}(?:px)?)\s*|(pin=[01])\s*|(label=(?<q9>\'|\")(?:.+?)\k<q9>)\s*|(zoom=\d{1,2})\s*|(float=(?:left|right))\s*|(clear=(?:left|right|both))\s*){0,7}\s*?(?:(caption=(?<q10>\'|\")(?:.+?)\k<q10>)\s*){0,1}\s*?:\)/i'
NZToponew\NZTopo_Parse: array (
'#' =>
array (
0 => 'gpx',
1 => 'https://kiwiwiki.nz/pmwiki/uploads/Trips/2015-07-03NeillForks/20150703%20Walls%20Whare%20to%20Totara%20Flats%20hut.gpx',
2 => '',
3 => ' ',
4 => 'zoom',
5 => '13',
),
'gpx' => 'https://kiwiwiki.nz/pmwiki/uploads/Trips/2015-07-03NeillForks/20150703%20Walls%20Whare%20to%20Totara%20Flats%20hut.gpx',
'' =>
array (
0 => ' ',
),
'zoom' => '13',
)
opt: array (
'#' =>
array (
0 => 'gpx',
1 => 'https://kiwiwiki.nz/pmwiki/uploads/Trips/2015-07-03NeillForks/20150703%20Walls%20Whare%20to%20Totara%20Flats%20hut.gpx',
2 => '',
3 => ' ',
4 => 'zoom',
5 => '13',
),
'gpx' => 'https://kiwiwiki.nz/pmwiki/uploads/Trips/2015-07-03NeillForks/20150703%20Walls%20Whare%20to%20Totara%20Flats%20hut.gpx',
'' =>
array (
0 => ' ',
),
'zoom' => '13',
)
output: '<:block><figure class="nztopo">
<iframe class="nztopoframe" title="Display NZ Topo map" loading="lazy" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="https://www.topomap.co.nz/NZTopoMapEmbedded?v=2&gpx=https%3A%2F%2Fwww.topomap.co.nz%2Fproxy.ashx%3Fhttps%3A%2F%2Fkiwiwiki.nz%2Fpmwiki%2Fuploads%2FTrips%2F2015-07-03NeillForks%2F20150703%20Walls%20Whare%20to%20Totara%20Flats%20hut.gpx&z=13&new=1">
</iframe>
</figure>
'
NZToponew\NZTopo_Parse: array (
'#' =>
array (
0 => 'gpx',
1 => 'https://kiwiwiki.nz/pmwiki/uploads/Trips/2015-07-03NeillForks/20150704%20Totara%20Flats%20hut%20to%20Neill%20Forks%20hut.gpx',
2 => '',
3 => ' ',
4 => 'zoom',
5 => '13',
),
'gpx' => 'https://kiwiwiki.nz/pmwiki/uploads/Trips/2015-07-03NeillForks/20150704%20Totara%20Flats%20hut%20to%20Neill%20Forks%20hut.gpx',
'' =>
array (
0 => ' ',
),
'zoom' => '13',
)
opt: array (
'#' =>
array (
0 => 'gpx',
1 => 'https://kiwiwiki.nz/pmwiki/uploads/Trips/2015-07-03NeillForks/20150704%20Totara%20Flats%20hut%20to%20Neill%20Forks%20hut.gpx',
2 => '',
3 => ' ',
4 => 'zoom',
5 => '13',
),
'gpx' => 'https://kiwiwiki.nz/pmwiki/uploads/Trips/2015-07-03NeillForks/20150704%20Totara%20Flats%20hut%20to%20Neill%20Forks%20hut.gpx',
'' =>
array (
0 => ' ',
),
'zoom' => '13',
)
output: '<:block><figure class="nztopo">
<iframe class="nztopoframe" title="Display NZ Topo map" loading="lazy" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="https://www.topomap.co.nz/NZTopoMapEmbedded?v=2&gpx=https%3A%2F%2Fwww.topomap.co.nz%2Fproxy.ashx%3Fhttps%3A%2F%2Fkiwiwiki.nz%2Fpmwiki%2Fuploads%2FTrips%2F2015-07-03NeillForks%2F20150704%20Totara%20Flats%20hut%20to%20Neill%20Forks%20hut.gpx&z=13&new=1">
</iframe>
</figure>
'
NZToponew\NZTopo_Parse: array (
'#' =>
array (
0 => 'gpx',
1 => 'https://kiwiwiki.nz/pmwiki/uploads/Trips/2015-07-03NeillForks/20150705 Neill Forks hut to Walls Whare.gpx',
2 => '',
3 => ' ',
4 => 'zoom',
5 => '13',
),
'gpx' => 'https://kiwiwiki.nz/pmwiki/uploads/Trips/2015-07-03NeillForks/20150705 Neill Forks hut to Walls Whare.gpx',
'' =>
array (
0 => ' ',
),
'zoom' => '13',
)
opt: array (
'#' =>
array (
0 => 'gpx',
1 => 'https://kiwiwiki.nz/pmwiki/uploads/Trips/2015-07-03NeillForks/20150705 Neill Forks hut to Walls Whare.gpx',
2 => '',
3 => ' ',
4 => 'zoom',
5 => '13',
),
'gpx' => 'https://kiwiwiki.nz/pmwiki/uploads/Trips/2015-07-03NeillForks/20150705 Neill Forks hut to Walls Whare.gpx',
'' =>
array (
0 => ' ',
),
'zoom' => '13',
)
output: '<:block><figure class="nztopo">
<iframe class="nztopoframe" title="Display NZ Topo map" loading="lazy" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="https://www.topomap.co.nz/NZTopoMapEmbedded?v=2&gpx=https%3A%2F%2Fwww.topomap.co.nz%2Fproxy.ashx%3Fhttps%3A%2F%2Fkiwiwiki.nz%2Fpmwiki%2Fuploads%2FTrips%2F2015-07-03NeillForks%2F20150705%20Neill%20Forks%20hut%20to%20Walls%20Whare.gpx&z=13&new=1">
</iframe>
</figure>
'
|