collapse

* Forum Staff

PeterC admin PeterC
Administrator
admin webmasterOPS
Administrator

Author Topic: M4OPS parameters  (Read 261 times)

PeterC

  • Administrator
  • Member
  • *****
  • Posts: 382
  • Passionate about my one-place study
    • View Profile
    • Holywell-cum-Needingworth History
M4OPS parameters
« on: 20 January 2017, 14:45:48 »
Optional parameters for M4OPS are:
  • Note that
    • everything is case-sensitive
    • any spaces should be replaced by %20
    • the first parameter is preceded by "?", and subsequent ones by "&"
  • OPS= code for the initial OPS (default HcN)
  • CHNG=N means you cannot change the OPS
  • File= filename of json to use, default M4OPS (.json)
  • Showlevel= (default 9999) for demonstrations starts at 0 then goes up at cutoffpoints
  • Nib= the Nibble (part of a Demo level) for the demonstration to start at
  • Layer0= the name (title) of the initial base layer to use (default is Bing Aerial)
  • Layer1= the name (title) of the initial overlay layer to use (default is OSM, No%20layer is an option)
  • Layer2= the name (title) of the initial first feature layer to use (default is No%20layer), and similarly for Layer3, Layer4 etc
  • Extent= the layer to initially fit to (default is to use the HomeView)
  • Displaystyle= (initial view)
    • onemapOpacity - One map with Opacity slider, or
    • sidebyside - Side by Side maps, or
    • onemapSpy - One Map with Spyglass
  • Zoom= initial zoom level eg 18
  • Lon= initial Longitude decimal degrees, eg -0.0318640 for central Needingworth
  • Lat= initial Latitude decimal degrees, eg 52.3304020 ditto
  • Click= the initial drop-down value - one of:
    • no - No lat/lon click
    • M4OPScsv - M4OPS lon;lat csv
    • M4OPSparam - M4OPS parameters
    • csv - lat,lon csv
    • geojson - {lon,lat} GeoJSON
    • EPSG3857 - EPSG:3857 (x/y)
    • HDMS - DegMinSec N/E
    • GeoHack - GeoHack links
    • Featureid - Feature id
  • Splash= html text for splash screen when M4OPS first opens, can include abbreviations (#..#)
    • one word abbreviations will, if necessary, have the word Splash appended, and be surrounded by #..#
    • (thus Splash=Spyglass becomes #SpyglassSplash#)
  • Tab= the initial advanced option tab to show:
    • Actions - PNG, Demo, icons (the default)
    • MFL - Modifiable Feature Layers
    • Upload - Upload, compile
    • Time - Time sliders
  • Green=Y if you want the background in development to be the normal Green
  • Shift=N if you want the layers NOT shifted east or north


Examples of using M4OPS with parameters are:

1) Show Pubs over Lidar and zooms to the Pubs
?OPS=HcN
&Layer2=Pubs
&Layer1=Lidar%20HcN
&Extent=2

2) Use spyglass display mode to compare test maps
?OPS=HcN
&Layer0=Hunts%20XIX_SW%201927%20whole
&Layer1=Hunts%20XIX_SW%201927%20stitched
&Displaystyle=onemapSpy
&Lon=-0.0320566
&Lat=52.3304344
&Splash=Spyglass

3) Use spyglass display mode to show a 25 inch map over the Bing aerial map, and lay Pubs over the top
?OPS=HcN
&Layer0=Bing%20Aerial
&Layer1=OS%2025%20inch%201925
&Layer2=Pubs
&Displaystyle=onemapSpy
&Lon=-0.0331381
&Lat=52.3298742
&Splash=Spyglass
&Zoom=18
« Last Edit: 24 August 2017, 07:38:36 by PeterC »

 

mapping4ops.org is a Society for One-Place Studies project supported by Grassroots Giving from Skipton Building Society
Glossary | BBCodes | Feedback