Recent Changes - Search:

add Test page

hide

Test


hide

Topics

show

Changed

Visitor's book Site map pmwiki-2.3.32

NZ Topo-Attach

MessagesReplacement version 2023-12-30new DebugMessages version 2024-01-14

Testing the Cookbook:NZTopo recipe, see NZTopo


NZTopo version 2023-01-22new

Tests use the development version of NZTopo - NZToponew

Test files are

When loaded to https://www.topomap.co.nz/ in the 'share map' add KML / GPX overlay, this is the 'test on map' link generated by topomap

See Cookbook.NZTopo, Cookbook.NZTopoAPI, Cookbook:NZTopo, Test NZTopo-Zoom, Test NZTopo-Attach-Errors, and https://www.topomap.co.nz/.

Test kml attachments (single rawurlencode)

wiki filenames that exist
(:nztopo kml="2014-05-30 13_54_13.kml" :)
(:nztopo kml="2014-05-30%2013_54_13.kml" :)
(:nztopo gpx="NZTopo-Attach/20150531.gpx" :)
(:nztopo gpx="Test/NZTopo-Attach/IvoryLakeMarch2018.gpx" :)

(:nztopo kml="2014-05-30%2013_54_13.kml" :)

wiki filenames that don't exist
(:nztopo kml='NZTopo-Attach/2014-05-30+13_54_13.kml' :)
(:nztopo kml="Test/2014-05-30 13_54_13.kml" :)
(:nztopo gpx="filename.gpx" :)
(:nztopo gpx="/myfilename.gpx" :)
(:nztopo gpx=".myfilename.gpx" :)

(:nztopo gpx="/myfilename.gpx" :)

single urlencode, filename urldecode, spaces in path. Works
(:nztopo kml="https://kiwiwiki.nz/testdata/2014-05-30 13_54_13.kml" :)

single urlencode, filename urldecode, %20 in path. Works
(:nztopo kml='https://kiwiwiki.nz/testdata/2014-05-30%2013_54_13.kml' :)

Test kml (3) attachments (single rawurlencode, no rawurldecode)

single urlencode, %20 in path. Works
(:nztopo kml3='https://kiwiwiki.nz/testdata/2014-05-30%2013_54_13.kml' :)

test gpx attachments

spaces in path. Works
(:nztopo gpx='https://kiwiwiki.nz/testdata/2010 10 23.gpx':)

%20 in path. Works
(:nztopo gpx='https://kiwiwiki.nz/testdata/2010%2010%2023.gpx' zoom=12:)

Works
(:nztopo gpx="https://kiwiwiki.nz/testdata/20150530.gpx" zoom=13:)

(:nztopo gpx='https://kiwiwiki.nz/testdata/20150529.gpx' zoom=15:)

(:nztoponew gpx='https://kiwiwiki.nz/testdata/20150531.gpx  ' zoom=15:)

(:nztoponew gpx='https://kiwiwiki.nz/testdata/20150531.gpx ' zoom=15:)

(:nztopo ll=-41.293722,174.871482  pin=1 zoom=12 float=right clear=right:)
(:nztopo ll=-41.293722,174.871482  pin=1 zoom=11:)

(:nztopo ll=-41.293722,174.871482  pin=1 zoom=14:) \
(:nztopo ll=-41.293722,174.871482  pin=1 zoom=13:)

Ivory Lake

(:nztopo gpx='https://kiwiwiki.nz/pmwiki/uploads/Test/NZTopo-Attach/IvoryLakeMarch2018.gpx'  width=700 height=700 zoom=15:)


(:nztoponew gpx="https://kiwiwiki.nz/pmwiki/uploads/Trips/2019-11-09RakiuraSouthernCircuit,Maps/2019-11-10%20Mason%20Bay%20Hut%20Kilbride%20to%20Doughboy%20Bay%20hut%20final.gpx"  width=700 height=700 zoom=15:)

(:nztoponew gpx="https://kiwiwiki.nz/pmwiki/uploads/Trips/2019-11-09RakiuraSouthernCircuit,Maps/2019-11-10%20Mason%20Bay%20Hut%20Kilbride%20to%20Doughboy%20Bay%20hut%20final.gpx" width=700 height=700 zoom=15:)


(:nztopo ll=-40.587755,175.47286 height=350 width=400 zoom=13 pin=0 float=right clear=right:)

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 => 'kml',
    1 => '2014-05-30 13_54_13.kml',
    2 => '',
    3 => ' ',
  ),
  'kml' => '2014-05-30 13_54_13.kml',
  '' => 
  array (
    0 => ' ',
  ),
)

encode_kml path: '/pmwiki/uploads/Test/NZTopo-Attach/2014-05-30 13_54_13.kml'
encode_kml enc_path: 'pmwiki%2Fuploads%2FTest%2FNZTopo-Attach%2F2014-05-30%2013_54_13.kml'
opt:
array (
  '#' => 
  array (
    0 => 'kml',
    1 => '2014-05-30 13_54_13.kml',
    2 => '',
    3 => ' ',
  ),
  'kml' => '2014-05-30 13_54_13.kml',
  '' => 
  array (
    0 => ' ',
  ),
)

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&kml=https%3A%2F%2Fkiwiwiki.nz%2Fpmwiki%252Fuploads%252FTest%252FNZTopo-Attach%252F2014-05-30%252013_54_13.kml&z=13&new=1"> </iframe> </figure> '

NZToponew\NZTopo_Parse
:
array (
  '#' => 
  array (
    0 => 'gpx',
    1 => 'NZTopo-Attach/20150531.gpx',
    2 => '',
    3 => ' ',
  ),
  'gpx' => 'NZTopo-Attach/20150531.gpx',
  '' => 
  array (
    0 => ' ',
  ),
)

opt:
array (
  '#' => 
  array (
    0 => 'gpx',
    1 => 'NZTopo-Attach/20150531.gpx',
    2 => '',
    3 => ' ',
  ),
  'gpx' => 'NZTopo-Attach/20150531.gpx',
  '' => 
  array (
    0 => ' ',
  ),
)

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%2FTest%2FNZTopo-Attach%2F20150531.gpx&z=13&new=1"> </iframe> </figure> '

NZToponew\NZTopo_Parse
:
array (
  '#' => 
  array (
    0 => 'gpx',
    1 => 'Test/NZTopo-Attach/IvoryLakeMarch2018.gpx',
    2 => '',
    3 => ' ',
  ),
  'gpx' => 'Test/NZTopo-Attach/IvoryLakeMarch2018.gpx',
  '' => 
  array (
    0 => ' ',
  ),
)

opt:
array (
  '#' => 
  array (
    0 => 'gpx',
    1 => 'Test/NZTopo-Attach/IvoryLakeMarch2018.gpx',
    2 => '',
    3 => ' ',
  ),
  'gpx' => 'Test/NZTopo-Attach/IvoryLakeMarch2018.gpx',
  '' => 
  array (
    0 => ' ',
  ),
)

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%2FTest%2FNZTopo-Attach%2FIvoryLakeMarch2018.gpx&z=13&new=1"> </iframe> </figure> '

NZToponew\NZTopo_Parse
:
array (
  '#' => 
  array (
    0 => 'kml',
    1 => 'NZTopo-Attach/2014-05-30+13_54_13.kml',
    2 => '',
    3 => ' ',
  ),
  'kml' => 'NZTopo-Attach/2014-05-30+13_54_13.kml',
  '' => 
  array (
    0 => ' ',
  ),
)


NZToponew\NZTopo_Parse
:
array (
  '#' => 
  array (
    0 => 'kml',
    1 => 'Test/2014-05-30 13_54_13.kml',
    2 => '',
    3 => ' ',
  ),
  'kml' => 'Test/2014-05-30 13_54_13.kml',
  '' => 
  array (
    0 => ' ',
  ),
)


NZToponew\NZTopo_Parse
:
array (
  '#' => 
  array (
    0 => 'gpx',
    1 => 'filename.gpx',
    2 => '',
    3 => ' ',
  ),
  'gpx' => 'filename.gpx',
  '' => 
  array (
    0 => ' ',
  ),
)


NZToponew\NZTopo_Parse
:
array (
  '#' => 
  array (
    0 => 'gpx',
    1 => '.myfilename.gpx',
    2 => '',
    3 => ' ',
  ),
  'gpx' => '.myfilename.gpx',
  '' => 
  array (
    0 => ' ',
  ),
)


NZToponew\NZTopo_Parse
:
array (
  '#' => 
  array (
    0 => 'kml',
    1 => 'https://kiwiwiki.nz/testdata/2014-05-30 13_54_13.kml',
    2 => '',
    3 => ' ',
  ),
  'kml' => 'https://kiwiwiki.nz/testdata/2014-05-30 13_54_13.kml',
  '' => 
  array (
    0 => ' ',
  ),
)

encode_kml path: '/testdata/2014-05-30 13_54_13.kml'
encode_kml enc_path: 'testdata%2F2014-05-30%2013_54_13.kml'
opt:
array (
  '#' => 
  array (
    0 => 'kml',
    1 => 'https://kiwiwiki.nz/testdata/2014-05-30 13_54_13.kml',
    2 => '',
    3 => ' ',
  ),
  'kml' => 'https://kiwiwiki.nz/testdata/2014-05-30 13_54_13.kml',
  '' => 
  array (
    0 => ' ',
  ),
)

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&kml=https%3A%2F%2Fkiwiwiki.nz%2Ftestdata%252F2014-05-30%252013_54_13.kml&z=13&new=1"> </iframe> </figure> '

NZToponew\NZTopo_Parse
:
array (
  '#' => 
  array (
    0 => 'kml',
    1 => 'https://kiwiwiki.nz/testdata/2014-05-30%2013_54_13.kml',
    2 => '',
    3 => ' ',
  ),
  'kml' => 'https://kiwiwiki.nz/testdata/2014-05-30%2013_54_13.kml',
  '' => 
  array (
    0 => ' ',
  ),
)

encode_kml path: '/testdata/2014-05-30 13_54_13.kml'
encode_kml enc_path: 'testdata%2F2014-05-30%2013_54_13.kml'
opt:
array (
  '#' => 
  array (
    0 => 'kml',
    1 => 'https://kiwiwiki.nz/testdata/2014-05-30%2013_54_13.kml',
    2 => '',
    3 => ' ',
  ),
  'kml' => 'https://kiwiwiki.nz/testdata/2014-05-30%2013_54_13.kml',
  '' => 
  array (
    0 => ' ',
  ),
)

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&kml=https%3A%2F%2Fkiwiwiki.nz%2Ftestdata%252F2014-05-30%252013_54_13.kml&z=13&new=1"> </iframe> </figure> '

NZToponew\NZTopo_Parse
:
array (
  '#' => 
  array (
    0 => 'kml3',
    1 => 'https://kiwiwiki.nz/testdata/2014-05-30%2013_54_13.kml',
    2 => '',
    3 => ' ',
  ),
  'kml3' => 'https://kiwiwiki.nz/testdata/2014-05-30%2013_54_13.kml',
  '' => 
  array (
    0 => ' ',
  ),
)

opt:
array (
  '#' => 
  array (
    0 => 'kml3',
    1 => 'https://kiwiwiki.nz/testdata/2014-05-30%2013_54_13.kml',
    2 => '',
    3 => ' ',
  ),
  'kml3' => 'https://kiwiwiki.nz/testdata/2014-05-30%2013_54_13.kml',
  '' => 
  array (
    0 => ' ',
  ),
)

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&kml=https%3A%2F%2Fkiwiwiki.nz%2Ftestdata%2F2014-05-30%252013_54_13.kml&z=13&new=1"> </iframe> </figure> '

NZToponew\NZTopo_Parse
:
array (
  '#' => 
  array (
    0 => 'gpx',
    1 => 'https://kiwiwiki.nz/testdata/2010 10 23.gpx',
    2 => '',
    3 => ' ',
  ),
  'gpx' => 'https://kiwiwiki.nz/testdata/2010 10 23.gpx',
  '' => 
  array (
    0 => ' ',
  ),
)

opt:
array (
  '#' => 
  array (
    0 => 'gpx',
    1 => 'https://kiwiwiki.nz/testdata/2010 10 23.gpx',
    2 => '',
    3 => ' ',
  ),
  'gpx' => 'https://kiwiwiki.nz/testdata/2010 10 23.gpx',
  '' => 
  array (
    0 => ' ',
  ),
)

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%2Ftestdata%2F2010%2010%2023.gpx&z=13&new=1"> </iframe> </figure> '

NZToponew\NZTopo_Parse
:
array (
  '#' => 
  array (
    0 => 'gpx',
    1 => 'https://kiwiwiki.nz/testdata/2010%2010%2023.gpx',
    2 => '',
    3 => ' ',
    4 => 'zoom',
    5 => '12',
  ),
  'gpx' => 'https://kiwiwiki.nz/testdata/2010%2010%2023.gpx',
  '' => 
  array (
    0 => ' ',
  ),
  'zoom' => '12',
)

opt:
array (
  '#' => 
  array (
    0 => 'gpx',
    1 => 'https://kiwiwiki.nz/testdata/2010%2010%2023.gpx',
    2 => '',
    3 => ' ',
    4 => 'zoom',
    5 => '12',
  ),
  'gpx' => 'https://kiwiwiki.nz/testdata/2010%2010%2023.gpx',
  '' => 
  array (
    0 => ' ',
  ),
  'zoom' => '12',
)

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%2Ftestdata%2F2010%2010%2023.gpx&z=12&new=1"> </iframe> </figure> '

NZToponew\NZTopo_Parse
:
array (
  '#' => 
  array (
    0 => 'gpx',
    1 => 'https://kiwiwiki.nz/testdata/20150530.gpx',
    2 => '',
    3 => ' ',
    4 => 'zoom',
    5 => '13',
  ),
  'gpx' => 'https://kiwiwiki.nz/testdata/20150530.gpx',
  '' => 
  array (
    0 => ' ',
  ),
  'zoom' => '13',
)

opt:
array (
  '#' => 
  array (
    0 => 'gpx',
    1 => 'https://kiwiwiki.nz/testdata/20150530.gpx',
    2 => '',
    3 => ' ',
    4 => 'zoom',
    5 => '13',
  ),
  'gpx' => 'https://kiwiwiki.nz/testdata/20150530.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%2Ftestdata%2F20150530.gpx&z=13&new=1"> </iframe> </figure> '

NZToponew\NZTopo_Parse
:
array (
  '#' => 
  array (
    0 => 'gpx',
    1 => 'https://kiwiwiki.nz/testdata/20150529.gpx',
    2 => '',
    3 => ' ',
    4 => 'zoom',
    5 => '15',
  ),
  'gpx' => 'https://kiwiwiki.nz/testdata/20150529.gpx',
  '' => 
  array (
    0 => ' ',
  ),
  'zoom' => '15',
)

opt:
array (
  '#' => 
  array (
    0 => 'gpx',
    1 => 'https://kiwiwiki.nz/testdata/20150529.gpx',
    2 => '',
    3 => ' ',
    4 => 'zoom',
    5 => '15',
  ),
  'gpx' => 'https://kiwiwiki.nz/testdata/20150529.gpx',
  '' => 
  array (
    0 => ' ',
  ),
  'zoom' => '15',
)

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%2Ftestdata%2F20150529.gpx&z=15&new=1"> </iframe> </figure> '

NZToponew\NZTopo_Parse
:
array (
  '#' => 
  array (
    0 => 'll',
    1 => '-41.293722,174.871482',
    2 => 'pin',
    3 => '1',
    4 => 'zoom',
    5 => '12',
    6 => 'float',
    7 => 'right',
    8 => 'clear',
    9 => 'right',
  ),
  'll' => '-41.293722,174.871482',
  'pin' => '1',
  'zoom' => '12',
  'float' => 'right',
  'clear' => 'right',
)

opt:
array (
  '#' => 
  array (
    0 => 'll',
    1 => '-41.293722,174.871482',
    2 => 'pin',
    3 => '1',
    4 => 'zoom',
    5 => '12',
    6 => 'float',
    7 => 'right',
    8 => 'clear',
    9 => 'right',
  ),
  'll' => '-41.293722,174.871482',
  'pin' => '1',
  'zoom' => '12',
  'float' => 'right',
  'clear' => 'right',
)

output: '<:block><figure class="nztopo" style="clear:right;float:right;"> <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&ll=-41.293722,174.871482&pin=1&z=12&new=1"> </iframe> </figure> '

NZToponew\NZTopo_Parse
:
array (
  '#' => 
  array (
    0 => 'll',
    1 => '-41.293722,174.871482',
    2 => 'pin',
    3 => '1',
    4 => 'zoom',
    5 => '11',
  ),
  'll' => '-41.293722,174.871482',
  'pin' => '1',
  'zoom' => '11',
)

opt:
array (
  '#' => 
  array (
    0 => 'll',
    1 => '-41.293722,174.871482',
    2 => 'pin',
    3 => '1',
    4 => 'zoom',
    5 => '11',
  ),
  'll' => '-41.293722,174.871482',
  'pin' => '1',
  'zoom' => '11',
)

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&ll=-41.293722,174.871482&pin=1&z=11&new=1"> </iframe> </figure> '

NZToponew\NZTopo_Parse
:
array (
  '#' => 
  array (
    0 => 'll',
    1 => '-41.293722,174.871482',
    2 => 'pin',
    3 => '1',
    4 => 'zoom',
    5 => '14',
  ),
  'll' => '-41.293722,174.871482',
  'pin' => '1',
  'zoom' => '14',
)

opt:
array (
  '#' => 
  array (
    0 => 'll',
    1 => '-41.293722,174.871482',
    2 => 'pin',
    3 => '1',
    4 => 'zoom',
    5 => '14',
  ),
  'll' => '-41.293722,174.871482',
  'pin' => '1',
  'zoom' => '14',
)

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&ll=-41.293722,174.871482&pin=1&z=14&new=1"> </iframe> </figure> '

NZToponew\NZTopo_Parse
:
array (
  '#' => 
  array (
    0 => 'll',
    1 => '-41.293722,174.871482',
    2 => 'pin',
    3 => '1',
    4 => 'zoom',
    5 => '13',
  ),
  'll' => '-41.293722,174.871482',
  'pin' => '1',
  'zoom' => '13',
)

opt:
array (
  '#' => 
  array (
    0 => 'll',
    1 => '-41.293722,174.871482',
    2 => 'pin',
    3 => '1',
    4 => 'zoom',
    5 => '13',
  ),
  'll' => '-41.293722,174.871482',
  'pin' => '1',
  '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&ll=-41.293722,174.871482&pin=1&z=13&new=1"> </iframe> </figure> '

NZToponew\NZTopo_Parse
:
array (
  '#' => 
  array (
    0 => 'll',
    1 => '-41.293722,174.871482',
    2 => 'pin',
    3 => '1',
    4 => 'zoom',
    5 => '15',
    6 => 'float',
    7 => 'right',
    8 => 'clear',
    9 => 'right',
  ),
  'll' => '-41.293722,174.871482',
  'pin' => '1',
  'zoom' => '15',
  'float' => 'right',
  'clear' => 'right',
)

opt:
array (
  '#' => 
  array (
    0 => 'll',
    1 => '-41.293722,174.871482',
    2 => 'pin',
    3 => '1',
    4 => 'zoom',
    5 => '15',
    6 => 'float',
    7 => 'right',
    8 => 'clear',
    9 => 'right',
  ),
  'll' => '-41.293722,174.871482',
  'pin' => '1',
  'zoom' => '15',
  'float' => 'right',
  'clear' => 'right',
)

output: '<:block><figure class="nztopo" style="clear:right;float:right;"> <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&ll=-41.293722,174.871482&pin=1&z=15&new=1"> </iframe> </figure> '

NZToponew\NZTopo_Parse
:
array (
  '#' => 
  array (
    0 => 'll',
    1 => '-41.293722,174.871482',
    2 => 'pin',
    3 => '1',
    4 => 'zoom',
    5 => '14',
  ),
  'll' => '-41.293722,174.871482',
  'pin' => '1',
  'zoom' => '14',
)

opt:
array (
  '#' => 
  array (
    0 => 'll',
    1 => '-41.293722,174.871482',
    2 => 'pin',
    3 => '1',
    4 => 'zoom',
    5 => '14',
  ),
  'll' => '-41.293722,174.871482',
  'pin' => '1',
  'zoom' => '14',
)

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&ll=-41.293722,174.871482&pin=1&z=14&new=1"> </iframe> </figure> '

NZToponew\NZTopo_Parse
:
array (
  '#' => 
  array (
    0 => 'mapref',
    1 => 'BN33991890',
    2 => 'pin',
    3 => '1',
    4 => 'zoom',
    5 => '12',
    6 => 'float',
    7 => 'right',
    8 => 'clear',
    9 => 'right',
  ),
  'mapref' => 'BN33991890',
  'pin' => '1',
  'zoom' => '12',
  'float' => 'right',
  'clear' => 'right',
)

opt:
array (
  '#' => 
  array (
    0 => 'mapref',
    1 => 'BN33991890',
    2 => 'pin',
    3 => '1',
    4 => 'zoom',
    5 => '12',
    6 => 'float',
    7 => 'right',
    8 => 'clear',
    9 => 'right',
  ),
  'mapref' => 'BN33991890',
  'pin' => '1',
  'zoom' => '12',
  'float' => 'right',
  'clear' => 'right',
)

output: '<:block><figure class="nztopo" style="clear:right;float:right;"> <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&mapref=BN33991890&pin=1&z=12&new=1"> </iframe> </figure> '

NZToponew\NZTopo_Parse
:
array (
  '#' => 
  array (
    0 => 'gpx',
    1 => 'https://kiwiwiki.nz/pmwiki/uploads/Test/NZTopo-Attach/IvoryLakeMarch2018.gpx',
    2 => '',
    3 => ' ',
    4 => 'height',
    5 => '700',
    6 => 'width',
    7 => '700',
    8 => 'zoom',
    9 => '15',
  ),
  'gpx' => 'https://kiwiwiki.nz/pmwiki/uploads/Test/NZTopo-Attach/IvoryLakeMarch2018.gpx',
  '' => 
  array (
    0 => ' ',
  ),
  'height' => '700',
  'width' => '700',
  'zoom' => '15',
)

opt:
array (
  '#' => 
  array (
    0 => 'gpx',
    1 => 'https://kiwiwiki.nz/pmwiki/uploads/Test/NZTopo-Attach/IvoryLakeMarch2018.gpx',
    2 => '',
    3 => ' ',
    4 => 'height',
    5 => '700',
    6 => 'width',
    7 => '700',
    8 => 'zoom',
    9 => '15',
  ),
  'gpx' => 'https://kiwiwiki.nz/pmwiki/uploads/Test/NZTopo-Attach/IvoryLakeMarch2018.gpx',
  '' => 
  array (
    0 => ' ',
  ),
  'height' => '700',
  'width' => '700',
  'zoom' => '15',
)

output: '<:block><figure class="nztopo"> <iframe class="nztopoframe" title="Display NZ Topo map" loading="lazy" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" width="700" height="700" 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%2FTest%2FNZTopo-Attach%2FIvoryLakeMarch2018.gpx&z=15&new=1"> </iframe> </figure> '

NZToponew\NZTopo_Parse
:
array (
  '#' => 
  array (
    0 => 'll',
    1 => '-40.587755,175.47286',
    2 => 'height',
    3 => '350',
    4 => 'width',
    5 => '400',
    6 => 'pin',
    7 => '0',
    8 => 'zoom',
    9 => '13',
    10 => 'float',
    11 => 'right',
    12 => 'clear',
    13 => 'right',
  ),
  'll' => '-40.587755,175.47286',
  'height' => '350',
  'width' => '400',
  'pin' => '0',
  'zoom' => '13',
  'float' => 'right',
  'clear' => 'right',
)

opt:
array (
  '#' => 
  array (
    0 => 'll',
    1 => '-40.587755,175.47286',
    2 => 'height',
    3 => '350',
    4 => 'width',
    5 => '400',
    6 => 'pin',
    7 => '0',
    8 => 'zoom',
    9 => '13',
    10 => 'float',
    11 => 'right',
    12 => 'clear',
    13 => 'right',
  ),
  'll' => '-40.587755,175.47286',
  'height' => '350',
  'width' => '400',
  'pin' => '0',
  'zoom' => '13',
  'float' => 'right',
  'clear' => 'right',
)

output: '<:block><figure class="nztopo" style="clear:right;float:right;"> <iframe class="nztopoframe" title="Display NZ Topo map" loading="lazy" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" width="400" height="350" src="https://www.topomap.co.nz/NZTopoMapEmbedded?v=2&ll=-40.587755,175.47286&pin=0&z=13&new=1"> </iframe> </figure> '

tahi Page last modified on 2022 Oct 16 22:14

Edit - History - Recent Changes - WikiHelp - Search - ?Subject="KiwiWiki: NZ Topo-Attach"&Body="From KiwiWiki: NZ Topo-Attach (https://kiwiwiki [period] nz/Test/NZTopo-Attach) - Testing the Cookbook:NZTopo recipe, see [[Cookbook/NZTopo" | email page as link ]]