[Chameleon] Keymap problem

Alan Hale alan.hale at btclick.com
Wed Mar 15 16:17:32 EST 2006


Hi Julien

I think so. Here are extracts from map file and template:




>From Map file


MAP

	SIZE 500 500
	EXTENT 209189 155600 363469 400130				
	UNITS meters
	IMAGECOLOR 209 246 236
	IMAGETYPE PNG
	SCALEBAR
	  STATUS embed
		UNITS kilometers
		INTERVALS 4
		TRANSPARENT true
		OUTLINECOLOR 0 0 0
END
	


>From template.html


<CWC2 TYPE="MapDHTML"
                VISIBLE="true"
                WIDTH="600"
                HEIGHT="600"
                ALLOWRESIZE="true"
                MARQUEECOLOR="#FF3333"
                MARQUEEWIDTH="2"
                MINSCALE="1"/>


	  
<CWC2 TYPE="KeyMap"
                IMAGE="./images/wales_back.png"
                WIDTH="300"
                HEIGHT="300"
                COLOR="-1 -1 -1"
                OUTLINECOLOR="255 0 0"
                MINX="209189"
                MINY="155600"
                MAXX="363469"
                MAXY= "400130"
                SRS=""/>

Alan

-----Original Message-----
From: Julien-Samuel Lacroix [mailto:jlacroix at mapgears.com] 


Hi,
Does the following parameters are correctly set in your KeyMap widget?
Width, Height, MinX, MinY, MaxX, MaxY and SRS

Julien

Alan Hale wrote:
> Hi - new to Chameleon and not long with Mapserver/Mapscript.
> 
> The bounded area within my reference map does not display correctly 
> when I use the keymap widget - I have a square main map and a square 
> reference map, and the map extents match, but the bounding box within 
> the reference map when I zoom in shows as a rectangle, and slightly 
> shifted to the East. Works fine with the same parameters when I used 
> Mapscript directly.
> 
> Grateful for any help.
> 
> Alan Hale
> Aberystwyth
> Wales, UK
> 

-- 
Julien-Samuel Lacroix
Mapgears
http://www.mapgears.com/

-- 
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.385 / Virus Database: 268.2.4/282 - Release Date:
15/03/2006
 

-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.385 / Virus Database: 268.2.4/282 - Release Date:
15/03/2006
 



More information about the Chameleon mailing list