mapping - variable maps microview >< global map map_view

65 views
Skip to first unread message

Tom Brughmans

unread,
May 13, 2009, 5:44:00 AM5/13/09
to arkusers
Hi all,
A couple of questions concerning mapping.
I figured out how the WMS and WFS works, and how I can define the
layers that are visible in map_view (in general) and micro_view (per
module). So at the moment I have the layers that I want visible in
map_view, zoomed to a specific extent defined in settings.php; and in
micro_view the module specific layers zoomed to the same extent
(settings.php).
I assume, however, that there is some code that allows for the map in
the microview to zoom in to a specific context or find location for
example. I tried defining the spatial settings in the mod settings
files but they don't seem to override the extent set in the settings
file. ( the settings I used: $refmap_type = 'SHAPE'; $refmap_layer =
'sites'; $refmap_field = 'NOMBRE'; $refmap_fieldvalue = 'Dolmen de
Palacio IV';)
So the questions are:
- how can I set a module specific map that automatically zooms to the
find/context the user is viewing?
- concerning the mod setings: does $refmap_layer refer to the layers
in the map file? Does $refmap_field refer to the classes in the map
file or to the attribute columns in the shapefile? Does
$refmap_fieldvalue refer to a unique value (e.g. one specific site),
if so this won't be very useful to zoom to a variable value?
- although the map should show up by default ($view_map_default =
TRUE;) it doesn't until I click the little globe in the zoom
functions?
- the extent in settings.php seems to define the extent of the
microview as well, how can I define distinct and meaningful extents
for both?

Thanks!

Tom

Stuart Eve

unread,
May 13, 2009, 5:57:51 AM5/13/09
to arku...@googlegroups.com, Tom Brughmans
Hi Tom

So the mapping on the micro_view (the sf_wfs_spat subform) should - if
everything is working fine - zoom directly to the item that is
currently being displayed on the rest of the micro_view (see http://www.lparchaeology.com/prescot/ark/micro_view.php?item_key=cxt_cd&cxt_cd=PCO06_666)
.

It sounds a bit like there is some kind of javascript error going on
here that is meaning the subform isn't zooming to the context
properly. Can you install the FireFox FireBug extension (http://getfirebug.com/
) - this is a really useful extension that allows you to easily pick
up javascript errors and debug them. enable it for your site and then
let me know if you see any errors come up (by clicking the tiny bug in
the bottom right of your firefox and going to the console).

Hope this makes sense?

Stu

Tom Brughmans

unread,
May 13, 2009, 6:50:20 AM5/13/09
to arkusers
WMS works fine, but I think my WFS map isn't set up correctly,
probably something wrong with the class or layers. I don't really
understand what value links the ARK database to the shapefiles. Should
there be a column in the shapefile that has the same itemkey as the
record in my ARK database? Could you have a look at the mapfile and
mod_settings below? (records in the fnd module refer to unique ID's in
the palacioiii_features.shp column POINT_ID, which are just numbers
from 1 to 308):
subform in mod_fnd_settings.php (other spatial settings mentioned in
previous post are left to default):

$conf_mcd_spat =
array(
'view_state' => 'max',
'edit_state' => 'view',
'sf_title' => 'spat_data',
'sf_html_id' => 'fnd_spat_display',
'sf_nav_type' => 'name',
'script' => 'php/subforms/sf_wfs_spat.php',
'wfs_layers' =>
array (
'piii_features'
),
'wms_layers' =>
array (
'palacioiii_extent',
'palacioiii_trenches',
),
'op_buffer' => 2,
);

WFS mapfile:

MAP
NAME "PIII ARK WFS Map"
STATUS ON
#IMAGETYPE PNG24
EXTENT 225972 4185039 248550 4200032
SIZE 446 296
SHAPEPATH "C:/ms4w/Apache/htdocs/ark/data/mapping/"
IMAGECOLOR 177 201 161
FONTSET "C:/ms4w/Apache/htdocs/ark/mapserver/fonts/
fonts.list"
SYMBOLSET "C:/ms4w/Apache/htdocs/ark/mapserver/symbols/
symbols35.sym"

WEB
METADATA
"wfs_title" "PIII ARK WFS"
"wfs_onlineresource" "http://localhost:80/ark/php/map/
ark_wxs_server.php"
"wfs_srs" "EPSG:23030"
END
IMAGEPATH 'C:/ms4w/Apache/htdocs/ark/mapserver/tmp/'
IMAGEURL '/mapserver/tmp/'
END

PROJECTION
"init=epsg:23030"

LAYER
CONNECTION "C:/ms4w/Apache/htdocs/ark/data/mapping/
palacioiii_features.shp"
CONNECTIONTYPE OGR
GROUP "cor"
NAME piii_features
STATUS DEFAULT
TEMPLATE "C:/ms4w/Apache/htdocs/ark/mapserver/templates/
dummy_template.html"
TYPE POINT
UNITS METERS
DUMP TRUE
METADATA
"wfs_title" "features in Palacio III"
"gml_featureid" "ark_id"
"gml_include_items" "all"
END
CLASS
NAME 'POINT_ID' #this is the name of the attribute collumn.
Correct?
STYLE
ANGLE 360
COLOR 0 45 60
OPACITY 40
OUTLINECOLOR 0 45 60
SYMBOL "circle.png"
SIZE 8
END
END
END

PS: I have firebug but it just sits there in the corner of my screen
being all grey and inactive, so can't give you it's opinion

On 13 mei, 10:57, Stuart Eve <stuart...@gmail.com> wrote:
> Hi Tom
>
> So the mapping on the micro_view (the sf_wfs_spat subform) should - if  
> everything is working fine - zoom directly to the item that is  
> currently being displayed on the rest of the micro_view (seehttp://www.lparchaeology.com/prescot/ark/micro_view.php?item_key=cxt_...)

Stuart Eve

unread,
May 13, 2009, 7:00:51 AM5/13/09
to arku...@googlegroups.com
Ok every layer you want to appear in the sf_wfs_spat needs to have a
column in it's attribute table called 'ark_id' and to be filled with
the full ark itemvalue (i.e. PCO06_123).

You may need to activate the firebug for that page - click on the
little bug and make sure you enable the console etc.

Something else you could try is pointing your browser at http://
YOUR_DOMAIN_HERE/YOUR_ARK_DIR/php/tools/generate_sld.php - that will
rewrite a small SLD file that is held in the mapserver/tmp/ directory
and should rewrite it to suit your mapfile.

Stu

Tom Brughmans

unread,
May 13, 2009, 11:10:54 AM5/13/09
to arkusers
Added 'ark_id' with the correct values to the shp file. In Firebug I
picked up the following request for the map:

<img id="OpenLayersDiv71" style="width: 256px; height: 256px;
position: relative;" class="olTileImage" src="/ark//php/map/
ark_wxs_server.php?LAYERS=sites&amp;FORMAT=image%2Fpng%3B%20mode
%3D24bit&amp;SERVICE=WMS&amp;VERSION=1.1.1&amp;REQUEST=GetMap&amp;STYLES=&amp;EXCEPTIONS=application
%2Fvnd.ogc.se_inimage&amp;SRS=EPSG
%3A23030&amp;BBOX=237807.99517000004,4191993.25558,237988.61729468632,4192173.8777046865&amp;WIDTH=256&amp;HEIGHT=256"/
>

so it only mentions WMS and doesn't seem to find the WFS. I also made
the sld xml file and the lines concerning my WFS layer are just empty
(below) so I think my WFS mapfile is not setup properly or the files
related to it.

<StyledLayerDescriptor version="1.0.0" xmlns="http://www.opengis.net/
sld" xmlns:gml="http://www.opengis.net/gml" xmlns:ogc="http://
www.opengis.net/ogc" xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.opengis.net/sld
http://schemas.opengis.net/sld/1.0.0/StyledLayerDescriptor.xsd">
<NamedLayer>
<Name>piii_sites</Name>
<UserStyle>
<FeatureTypeStyle>
<Rule>
<Name></Name>
<PointSymbolizer>
</PointSymbolizer>
</Rule>
</FeatureTypeStyle>
</UserStyle>
</NamedLayer>
</StyledLayerDescriptor>

Tom

Stuart Eve

unread,
May 27, 2009, 6:57:18 AM5/27/09
to arku...@googlegroups.com, Tom Brughmans
Tom apologies for delay.

Ok before we do anything else - can you do a GetCapabilities request
and do you see any error messages?

The address will be: http://YOUR_DOMAINHERE/ark/php/map/
ark_wxs_server.php?SERVICE=WFS&VERSION=1.0.0&REQUEST=GetCapabilities

If that returns some XML which all looks fine - can you connect to the
WFS server using gvSIG/QGIS? YOu should be able to just add a WFS
layer straight into gvSIG.

If that works ok and you can display your layers in a desktop GIS we
can move onto why its not working with Openlayers.

Stu

On 13 May 2009, at 16:10, Tom Brughmans wrote:

>
> Added 'ark_id' with the correct values to the shp file. In Firebug I
> picked up the following request for the map:
>
> <img id="OpenLayersDiv71" style="width: 256px; height: 256px;
> position: relative;" class="olTileImage" src="/ark//php/map/
> ark_wxs_server.php?LAYERS=sites&FORMAT=image%2Fpng%3B%20mode
> %3D24bit
> &SERVICE
> =WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application
> %2Fvnd.ogc.se_inimage&SRS=EPSG
> %3A23030
> &BBOX
> =
> 237807.99517000004,4191993.25558,237988.61729468632,4192173.8777046865
> &WIDTH=256&HEIGHT=256"/
>>>>> Tomr both?
>>
>>>>> Thanks!
>>
>>>>> Tom
> >

Tom Brughmans

unread,
May 27, 2009, 8:50:40 AM5/27/09
to arkusers
Hi Stu,

Did the GetCapabilities and received errors, so the WFS mapfile is not
setup correctly I think:

# Warning: [MapServer Error]: getSymbol(): Parsing error near
(DEFAULT):(line 3) in C:\ms4w\Apache\htdocs\ark\php\map
\ark_wxs_server.php on line 63

# Warning: Failed to open map file C:/ms4w/Apache/htdocs//ark/
mapserver/mapfiles/piii_arkwfs.map in C:\ms4w\Apache\htdocs\ark\php\map
\ark_wxs_server.php on line 63

# Fatal error: Call to a member function owsdispatch() on a non-object
in C:\ms4w\Apache\htdocs\ark\php\map\ark_wxs_server.php on line 65

The WFS mapfile is simmilar to the one posted above but just to be
sure I'll add the new one to this message. I didn't have much time to
update it, so there might be a problem with my basic WFS
configurations in this file. Any tips will be greatly appreciated!!!

Tom

MAP
NAME "PIII ARK WFS Map"
STATUS DEFAULT
#IMAGETYPE PNG24
EXTENT 225972 4185039 248550 4200032
SIZE 446 296
SHAPEPATH "C:/ms4w/Apache/htdocs/ark/data/mapping/"
IMAGECOLOR 177 201 161
FONTSET "C:/ms4w/Apache/htdocs/ark/mapserver/fonts/fonts.list"
SYMBOLSET "C:/ms4w/Apache/htdocs/ark/mapserver/symbols/
symbols35.sym"


WEB

METADATA
"wfs_title" "PIII ARK WFS"
"wfs_onlineresource" "http://localhost/ark/php/map/
ark_wxs_server.php"
"wfs_srs" "EPSG:23030"
END

IMAGEPATH 'C:/ms4w/Apache/htdocs/ark/mapserver/tmp/'
IMAGEURL '/mapserver/tmp/'

END

PROJECTION
# Basic initial projection should be in ETRS89 / ETRS-LCC
# This projection will also be dynamically set by the PHP
"init=epsg:23030"
#
END
#

# Start of LAYER DEFINITIONS
---------------------------------------------
#Start of ARK layers--------------------

LAYER
CONNECTION "C:/ms4w/Apache/htdocs/ark/data/mapping/
piii_arksites.shp"
CONNECTIONTYPE OGR
GROUP "cor"
NAME piii_sites
STATUS DEFAULT
TEMPLATE "C:/ms4w/Apache/htdocs/ark/mapserver/templates/
dummy_template.html"
TYPE POINT
UNITS METERS
DUMP TRUE
METADATA
"wfs_title" "Sites Almaden de la Plata"
"gml_featureid" "ark_id"
"gml_include_items" "all"
END
CLASS
NAME ""
STYLE
# ANGLE 360
# COLOR 0 45 60
# OPACITY 40
# OUTLINECOLOR 0 45 60
SYMBOL "circle.png"
SIZE 10
END
END
END

## End of LAYER DEFINITIONS ------------------------------------

END # end of map file

Stuart Eve

unread,
May 27, 2009, 8:57:08 AM5/27/09
to arku...@googlegroups.com
Ok so that error message is saying theres an error in your mapfile on
line 3, which is STATUS DEFAULT.

Looks like from the mapfile help (http://mapserver.org/mapfile/
map.html) that STATUS when in the MAP section can only be on/off. This
is confusing because in the LAYER section it can be DEFAULT!

Anyhow, I think you can probably take that STATUS call out and see if
that helps get over those errors.

Stu

Tom Brughmans

unread,
May 27, 2009, 9:11:30 AM5/27/09
to arkusers
GREAT!
Removed the STATUS line (which was necessary in all my other mapserver
applications) and the GetCapabilities requests provides a correct XML
file! I added the sites layer to QGIS so the mapfile should be fine
now.
Going back to ARK: the map in Microview does not show up by default
(although I changed this setting to TRUE). When clicking on the globe
only the WMS layer shows up. When removing the WMS layer from the
array I get an error message in this mapview "invalid layer(s) given
in the LAYERS parameter". It just doesn't seem to recognise the WFS
layer, although it's mentioned in the WFS array in the module's
settings, an attribute field is added with an 'ark_id', and map by
default is set to true. I think the problem now lies with my ARK
settings, where should I look?
Copied the relevant code below this message.
Thanks!!
Tom

mod_sit_settings.php

// Spatial viewer (subform)
$conf_mcd_spat =
array(
'view_state' => 'max',
'edit_state' => 'view',
'sf_title' => 'spat_data',
'sf_html_id' => 'sit_spat_display',
'sf_nav_type' => 'name',
'script' => 'php/subforms/sf_wfs_spat.php',
'wfs_layers' =>
array (
'piii_sites',
),
'wms_layers' =>
array (
// 'sites',
// 'palacioiii_extent',
),
'op_buffer' => 2,
);

// OTHER SPATIAL SETTINGS

//decide if you want to show a reference map when the spatial subform
is in primary column
$refmap_show = TRUE;
//set this to TRUE if you want the maps to display on default, else
leave as FALSE
$view_map_default = TRUE;
//This is for setting up the params from the reference map
$refmap_type = 'SCALE'; //choose if you want to zoom to 'SCALE' or
'SHAPE' -
//i.e. if you want to always have the ref map zoomed to a set scale
or if you
//want it to zoom the outline of a specific shape
$refmap_scale = 500; //leave this NULL if you are zooming to a
shape,
//else use an int i.e. 500 for 1:500
$refmap_width = 200; // (OPTIONAL) this is an optional value for
specifiying a non-default width
//(if not specified the value is taken from the $map object)
$refmap_height = 200; // (OPTIONAL) this is an optional value for
specifiying a non-default
//height (if not specified the value is taken from the $map object)
$refmap_layer = NULL; //OPTIONAL (only should be used if zoomtype
SHAPE is stated) - the name of
//the layer to zoom to
$refmap_field = NULL; //OPTIONAL (only should be used if zoomtype
SHAPE is stated) - the name
//of attribute field of the shape to zoom to
$refmap_fieldvalue = NULL; //OPTIONAL (only should be used if
zoomtype SHAPE is stated) - the
//value in the attribute field of the shape to zoom to


settings.php

// MAPPING
// Path to temp directory (server)
$ark_maptemp_dir = 'C:/ms4w/Apache/htdocs/'.$ark_dir.'mapserver/tmp/';
// Path to temp directory (web)
$ark_web_maptemp_dir = 'mapserver/tmp/';
// Path to WMS mapfile (server)
$ark_wms_map = 'C:/ms4w/Apache/htdocs/'.$ark_dir.'mapserver/mapfiles/
piii_arkwms.map';
// Path to WFS mapfile (server)
$ark_wfs_map = 'C:/ms4w/Apache/htdocs/'.$ark_dir.'mapserver/mapfiles/
piii_arkwfs.map';
// Map scales
$map_scales =
'[90000,60000,50000,30000,10000,5000,3000,2000,1000,750,500,250,150,100,50,25,10]';
// Tilecache_path - only set this if you have a tilecache setup on
your server
//$tilecache_path = '/cgi-bin/tilecache.cgi?';

/*$wms_qlayers = array (
array(
'name' => 'palacioiii_features',
'geom' => 'pgn'
),
array(
'name' => 'sfi_points',
'geom' => 'pt'
),
);*/
// Map projection (in form: "EPSG:4326")
$map_projection = 'EPSG:23030';
// Map extents (in form: "1075,970,1115,1010")
$map_extents =
'237807.99517,4191993.25558,237913.47567,4192074.57081';
// Maplayers from the WMS layer used inthe map view
$mapview_layers = array (
'sites',
'palacioiii_extent',
'palacioiii_contours',
'palacioiii_trenches',
'palacioiii_features',
'palacioiii_stones',
'palacioiii_features2'
);
> ...
>
> read more »

Stuart Eve

unread,
May 27, 2009, 9:27:30 AM5/27/09
to arku...@googlegroups.com, Tom Brughmans
Cool - so now we need to start checking FireBug errors/responses.

So firstly are you getting any errors in your Firebug console? I would
imagine you will get a TidyBrowser error (thats a problem with the
current openlayers code), and you will likely have a [namedLayer] SLD
error?

Try rerunning the php/tools/generate_sld.php file to see if it
properly generates your SLD file now. If it doesn't you may need to
program that in manually - which I can help you with.

If you are not getting an error check the FireBug Console and you
should see a couple of XMLHttpRequests going out. one of them to the
SLD file and the other to the wxs_server address. Expand these
requests in FireBug and take a look at the response. If you are
getting valid XML from the wxs_server request - it should come back
with coordinates and that type of thing? That means its properly
querying the file and getting the GML back for the feature.

If not - then hopefully there will be some kind of error that we can
figure out? Also I know it sounds stupid but make sure you are looking
at a record that actually does have spatial data (with the correctly
formed itemvalue in the ark_id column of the shapefile).

Stu
>>> FONTSET "C:/ms4w/Apache/htdocs/ark/mapserver/fonts/
>>> fonts.list"
>>> SYMBOLSET "C:/ms4w/Apache/htdocs/ark/mapserver/symbols/
>>> symbols35.sym"
>>
>>> WEB
>>
>>> METADATA
>>> "wfs_title" "PIII ARK WFS"

Tom Brughmans

unread,
May 27, 2009, 10:19:48 AM5/27/09
to arkusers
I get two errors in Firebug, concerning the sld I think cause at the
top it says "GET http://localhost/ark/mapserver/tmp/ark-sld.xml".
Errors:

sld.namedLayers[layerName] is undefined
getDefaultStyle(Object namedLayers=Object, "piii_sites")
micro_vi...acioIII_1 (line 231)
complete(XMLHttpRequest _object=XMLHttpRequest _async=true
readyState=4)micro_vi...acioIII_1 (line 254)
GET()()OpenLayers.js (line 332)
fReadyStateChange(XMLHttpRequest _object=XMLHttpRequest _async=true
readyState=4)OpenLayers.js (line 519)
onreadystatechange()()OpenLayers.js (line 510)
[Break on this error] var styles = sld.namedLayers
[layerName].userStyles;
micro_vi...acioIII_1 (line 231)

AND

Permission denied to get property XULElement.accessKey
[Break on this error] undefined

I ran the SLD tool again and it's still empty for my WFS layer. Should
I just change this file to get the map styled as I want to or is there
another file that I should change manually?

Looking at the Javascript defining the layers (just below the <script
src="mapserver/openlayers/OpenLayers.js">):
The WMS layer is correctly defined. There is a filter mentioning the
'ark_id' and indicating the database item I'm viewing, which is good.
And I see a link to an SLD style 'piii_sites.sld' and a correct
request for a WFS layer:

OpenLayers.loadURL("php/map/ark_wxs_server.php?
&VERSION=1.0.0&SERVICE=WFS&REQUEST=GetFeature&TYPENAME=piii_sites&Filter=<Filter><PropertyIsEqualTo><PropertyName>ark_id</
PropertyName><Literal>PalacioIII_1</Literal></PropertyIsEqualTo></
Filter>", "", null, parseData);
63

Below that I see "function parseData(req) {" which has a lot of
bbox=NULL in it, I hope this is default stuff.

So could it be that it just can't get the right style? Where can I
change this style?
I imagine I just have to add something like the following to the right
file:

<Rule>
<Title>point</Title>
<PointSymbolizer>
<Graphic>
<Mark>
<WellKnownName>circle</WellKnownName>
<Fill>
<CssParameter name="fill">#7895A3</CssParameter>
</Fill>
</Mark>
<Size>4</Size>
</Graphic>
</PointSymbolizer>

<TextSymbolizer>
<Label>
<ogc:PropertyName>NOMBRE</ogc:PropertyName>
</Label>

<Font>
<CssParameter name="font-family">Arial</CssParameter>
<CssParameter name="font-style">Normal</CssParameter>
<CssParameter name="font-size">12</CssParameter>
<CssParameter name="font-weight">bold</CssParameter>
</Font>

<Fill>
<CssParameter name="fill">#D4F1FC</CssParameter>
</Fill>
</TextSymbolizer>

</Rule>


Thanks alot

Tom
> ...
>
> read more »

Tom Brughmans

unread,
May 27, 2009, 10:20:20 AM5/27/09
to arkusers
> ...
>
> read more »

Tom Brughmans

unread,
May 27, 2009, 4:09:14 PM5/27/09
to arkusers
Right,

I changed the style settings in my WFS .map (I fear I just forgot to
configure the style as the WFS example of ARK did not have a style
configured). Now the sld file does show the custom style I defined.
Also I used a "well known name" instead of a symbol, as the symbol
wouldn't show up in the style for some reason. Only have one error in
Firebug left: "sld.namedLayers[layerName] is undefined". Map still
doesn't show up by default though, and it does not zoom to an
individual site. I just had a look at the Prescot Dig ARK with
Firebug, and the Javascript looks exactly the same: wms layer ok, WFS
filter ok, SLD ok, WFS request ok. Also checked the Prescot
'ark_wfs.map' and made my own file to resemble it exactly. As I can
connect to the WFS.map file with QGIS and I have my SLD working (I
think), my problem might lie in my ARK settings... (posted above).
Changing the WFS directory in 'settings.php' or mentioning an
unexisting layer in the WFS array of 'mod_sit_settings.php' does not
give any error message. I think ARK just can't find my .map file

Tom

On May 27, 3:20 pm, Tom Brughmans <tom.brughm...@yahoo.com> wrote:
> I get two errors in Firebug, concerning the sld I think cause at the
> top it says "GEThttp://localhost/ark/mapserver/tmp/ark-sld.xml".
> ...
>
> read more »

Stuart Eve

unread,
May 28, 2009, 6:46:23 AM5/28/09
to arku...@googlegroups.com
Ok Tom

I think you have identified a bug here... I have been playing with
this stuff recently in the SVN and I have changed the code a little
bit - I have attached the new map_functions2.php file, which should
enable it to work. There was some confusion with JS layer_names - I
hope this one works!

copy this file into you php/map/ directory - it should sort out the
problem.

Stu


map_functions2.php

Tom Brughmans

unread,
May 28, 2009, 9:44:08 AM5/28/09
to arkusers
Added the new file, and get an error sayer that openlayers is not
defined (which appears to be the line you changed in the new php file)
and a syntax error: <!DOCTYPE html \n
Tried changing some stuff but had to realise that I don't really
understand half of it.
Cheers
Tom
>  map_functions2.php
> 48KViewDownload
> ...
>
> read more »

Tom Brughmans

unread,
May 28, 2009, 9:50:24 AM5/28/09
to arkusers
Just to be clear: the link to the openlayers.js file which was there
in the previous version, is gone now. So there is something wrong with
the path to this file. The openlayers controls don't show up.

Tom
> ...
>
> read more »

Stuart Eve

unread,
May 28, 2009, 10:45:03 AM5/28/09
to arku...@googlegroups.com
Ok

You will need to add a new line into your settings.php which defines
the variable $openlayers_path.

So something like:

// Web address of OpenLayer.js (can be relative)
//$openlayers_path = $ark_dir.'/mapserver/openlayers/OpenLayers.js';
$openlayers_path = 'http://openlayers.org/api/OpenLayers.js';

Should work. You will notice there that the first line is commented
out. v0.6 does ship with openlayers in the codebase, therefore you can
refer to the shipped version (very useful if you ARK server is not
connected to the internet). Otherwise you can set it to look at the
online hosted version.

HTH

Stu

Tom Brughmans

unread,
May 28, 2009, 11:08:00 AM5/28/09
to arkusers
Hi Stu,

Added the line, and openlayers loads again as it should. Hate to say
still no default action in microview though, just the WMS layer when I
click the globe (same as last night, no new errors).
I think there must be some little configuration I didn't set
correctly. Will be hard to figure that out through the forum. I really
appreciate all the support you've given, I already have some pretty
amasing stuff to hand in for the deadline tomorrow.

Tom
> ...
>
> read more »

Tom Brughmans

unread,
May 28, 2009, 12:44:20 PM5/28/09
to arkusers
Didn't fix my stuff but noticed some things (while comparing my files
with Stu's) you might want to change or clarify for a following
version:

- The dummy_template.html has a specific IP address by default,
shouldn't this be localhost by default (although it didn't mess up my
maps as far as I know
- in settings.php there is $loaded_map_mods which I didn't notice
until now. As this refers to spatial stuff maybe you could move this
layer to the //MAPPING part.
- In the latter part of the same file $wms_qlayers is commented out by
default, I actually thought it was part of the caching option which is
commented out as well. Going through the settings file Stu gave me, I
noticed there are two other settings in this mapping part that are not
present in the v0.6 package of ARK: $wms_layers and $wfs_qlayers.
Maybe add these and clarify their use?

Thought my issue might have something to do with these differences but
configuring them doesn't seem to make a difference.

Cheers
Tom
> ...
>
> read more »
Reply all
Reply to author
Forward
0 new messages