[Geomoose-users] Imagemaps + GeoMoose
Bob Basques
Bob.Basques at ci.stpaul.mn.us
Tue Oct 7 15:05:41 EDT 2008
Matej,
Take a look at these examples, GeoMoose 1.4:
The trick is to have the XML template files handy for sending the Imagemap instead of the raster image from MapServer.
MAPFILE:
------------------------------------------
##
## Example ImageMapCall:
## http://dragonslayer.ci.stpaul.mn.us/cgi-bin/mapserv?
## map=amanda02.map&
## imgext=593420.362790+170048.359702+593673.612838+170254.118302&
## imgxy=399.5+324.5&
## zoom=-2
##
MAP
NAME 'test'
SIZE 800 650
STATUS ON
##IMAGECOLOR 254 254 254
##EXTENT 540000 135000 600000 175000
EXTENT 593133.398829 170094.734526 593893.148973 170712.010326
UNITS FEET
##FONTSET view.fonts
SYMBOLSET mon.symbols
TRANSPARENT TRUE
IMAGETYPE PNG
LAYER
METADATA
"ows_title" "layer_0"
"gml_include_items" "all"
END
NAME 'monuments-cogo'
DATA 'SURVEY/2006_00/COGO/Monuments-cogo'
GROUP 'monuments'
STATUS DEFAULT
TYPE POINT
LABELITEM 'OLD'
CLASS
NAME 'COGO'
OUTLINECOLOR 0 0 0
COLOR 255 200 200
SIZE 10
SYMBOL 'square'
OVERLAYOUTLINECOLOR 0 0 0
OVERLAYCOLOR 0 0 0
OVERLAYSIZE 5
OVERLAYSYMBOL 'circle'
##LABEL
##FORCE TRUE
##COLOR 255 200 200
##OUTLINECOLOR 0 0 0
##SIZE LARGE
##WRAP ' '
##END
END
##HEADER '../../imagemap/monuments_header.html'
TEMPLATE 'SURVEY/2006_00/COGO/Monuments-cogo_record.xml'
FOOTER 'SURVEY/2006_00/COGO/Monuments-cogo_footer.xml'
END
END ## end Map
----------------------------------------
HEADER.XML
<Xxml version="1.0"?>
<Xxml-stylesheet type="text/xsl" href="[XSL_LOCATION]"?>
<imagemap>
<name>[MAP_ID]</name>
<style name="Monuments"><![CDATA[
div.Monuments {
background: #AAAAFF;
border: solid 3px #DDDDDD;
}
div.Monuments div#title {
background: #007733;
color: white;
font-weight: bold;
}
]]>
<title>
<attr name="background" value="#073"/>
<attr name="fontWeight" value="bold"/>
<attr name="color" value="white"/>
</title>
<contents>
<attr name="background" value="#AAF"/>
</contents>
</style>
-------------------------------------------
RECORD.XML (there is a sample "Monument.shp" sample file in the GeoMoose distro that shows the column names)
<popup class="Monuments" shape="circle" coords="[shpxy xf="," proj=image],15" displayxy="[shpxy xf="," proj=image]">
<title>Monument</title>
<item title="COGO:">[COGO]</item>
<item href="http://survey.ci.stpaul.mn.us/tmp/[HYPERLINK]">Metadata</item>
<item href="http://survey.ci.stpaul.mn.us/tmp/[TIES]">Ties for MON #[OLD]</item>
<item href="http://survey.ci.stpaul.mn.us/tmp/[PHOTO]">Photos for MON #[OLD]</item>
</popup>
----------------------------------------
FOOTER.XML
</imagemap>
bobb
>>> "Matej" <matej at matnet.net> 10/07/08 10:05 AM >>>
Hello,
I am still having that issue with Imagemaps and Geomoose. Could you please
send me some code snippets as you wrote me you can?
I am desperately looking for some examples and even popups documentation
(can I achieve the goal I want with them?) that was on the old web site is
missing.
Thank you for your reply in advance,
Matej Serc
matej at matnet.net
More information about the Geomoose-users
mailing list