Difference between revisions of "Configuring the Mapping"
From ARK
(→Map View/View as Map (data_view.php)) |
|||
(4 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
This will be written up better soon for now I'm using it to help me remember stuff for lter. | This will be written up better soon for now I'm using it to help me remember stuff for lter. | ||
− | Map View/View as Map | + | ==Map View/View as Map (data_view.php)== |
− | all names of layers that are queryable need to be prefaced by the mod and an underscore... i.e cxt_pl or sfi_sf. This is vital for the templating to know how to get the mod. | + | *all names of layers that are queryable need to be prefaced by the mod and an underscore... i.e cxt_pl or sfi_sf. This is vital for the templating to know how to get the mod. |
+ | *The template document need to be set up per ARK - unfortunately the querying engine can only read straight html - so you need to hardcode in your web-address into the object. | ||
+ | |||
+ | *you need to run php/tools/generate_sld.php after any changes to your mapd docs | ||
+ | |||
+ | Make sure you have this in your stylesheet | ||
+ | |||
+ | /* MAPPING STYLES */ | ||
+ | div.smallmap { | ||
+ | background:transparent url(ark/skins/arkologik/images/loading.gif) no-repeat scroll center; | ||
+ | height:200px; | ||
+ | width:100%; | ||
+ | } | ||
+ | div.mapview { | ||
+ | background:transparent url(ark/skins/arkologik/images/loading.gif) no-repeat scroll center; | ||
+ | height:500px; | ||
+ | width:600px; | ||
+ | } | ||
[[Category: Administrator]] | [[Category: Administrator]] |
Latest revision as of 06:57, 7 July 2008
This will be written up better soon for now I'm using it to help me remember stuff for lter.
Map View/View as Map (data_view.php)
- all names of layers that are queryable need to be prefaced by the mod and an underscore... i.e cxt_pl or sfi_sf. This is vital for the templating to know how to get the mod.
- The template document need to be set up per ARK - unfortunately the querying engine can only read straight html - so you need to hardcode in your web-address into the object.
- you need to run php/tools/generate_sld.php after any changes to your mapd docs
Make sure you have this in your stylesheet
/* MAPPING STYLES */ div.smallmap { background:transparent url(ark/skins/arkologik/images/loading.gif) no-repeat scroll center; height:200px; width:100%; } div.mapview { background:transparent url(ark/skins/arkologik/images/loading.gif) no-repeat scroll center; height:500px; width:600px; }