Canvas snippets: Difference between revisions

Jump to navigation Jump to search
m
m (Some fixes)
Line 269: Line 269:
  TestMap.addLayer(factory: canvas.SymbolLayer, type_arg: type.name, visible: type.vis, priority: type.zindex,);
  TestMap.addLayer(factory: canvas.SymbolLayer, type_arg: type.name, visible: type.vis, priority: type.zindex,);
</syntaxhighlight>
</syntaxhighlight>
|}
== Using MapStructure and Overlays ==
{| class="wikitable"
|-
! Screenshot !! Code
|-
| [[File:Canvas-overlay-with-mapstructure.png|thumb|Using the [[MapStructure]] framework in conjunction with raster images as overlays]]
| {{Note|This assumes that you already have a top-level root group set up, and named it '''root''', just change this variable if you want it to be rendered elsewhere. Equally, this snippet assumes that your canvas is named '''myCanvas'''.}}
<syntaxhighlight lang="nasal" enclose="div">


|}
|}

Navigation menu