[Chameleon] Smooth panning

Gambin Dejan Dejan.Gambin at pula.hr
Wed Mar 14 05:13:38 EST 2007


Hi Bart,

Thank you very much for your help. If I am bothering you too much, you
just say :-))

I have tried to get the map with your MapOpenLayers widget but I just
can't. I can successfully get the map using my map file and the
elementary WMS request. I can also get this map by modifiying an
OpenLayers example so some elementary things should be OK.

Since I don't have your map file example I have looked through the code.
I saw that CONNECTION should be set for each layer, and wms_name,
wms_format too. I have done this. I have also set "openlayers_baselayer"
metadata parameter to true for each layer (I wanted to do an example
without the overview map). But I get the syntax error "var
array_overviewmaplayers = ]" in JavaScript console (Firefox browser). If
I set "openlayers_overviewmaplayer" to true for the first layer for
example, then it breaks the loop and no basic layers exist any more. Why
is that? 

But regardless of this, I don't get any map. Since I don't have
AddLoadEvent function like you, I have used something like:

<body onLoad="myOnLoad()"> and then:

function myOnLoad()
{
  CWC2OnLoadFunction()
}
</script>

...but the I get "OpenLayers is not defined" JavaScript error in
JavaScript console in mapinit() function, on the first line:
	OpenLayers.DOTS_PER_INCH = 90.714;	

...so I must be doing some trivial mistake...I would appreciate any help
you can give me.

regards, dejan


> -----Original Message-----
> From: Bart van den Eijnden (OSGIS) [mailto:bartvde at osgis.nl] 
> Sent: Tuesday, March 13, 2007 10:04 AM
> To: Gambin Dejan
> Subject: RE: [Chameleon] Smooth panning
> 
> Hi Dejan,
> 
> the file is attached. Hope it helps.
> 
> Best regards,
> Bart
> 
> --
> Bart van den Eijnden
> OSGIS, Open Source GIS
> http://www.osgis.nl
> 
> 
> --------- Oorspronkelijk bericht --------
> Van: Gambin Dejan <Dejan.Gambin at pula.hr>
> Naar: Bart van den Eijnden OSGIS <bartvde at osgis.nl>
> Cc: chameleon at lists.maptools.org
> Onderwerp: RE: [Chameleon] Smooth panning
> Datum: 13/03/07 07:01
> 
> > Thanks Bart, now it is clear enough.  Do you maybe have a 
> sample html 
> > file with the new widgets definitions in it (MapOpenLayers, 
> > KeyMapOpenLayers, OpenLayersMouseToolbar, OpenLayersPanZoombar, 
> > OpenLayersScalebar)? Can you send me one or tell me if I 
> can download 
> > it from somewhere?
> > 
> > thanks very much
> > 
> > dejan
> > 
> > &gt; -----Original Message-----
> > &gt; From: Bart van den Eijnden (OSGIS) 
> [mailto:bartvde at osgis.nl] &gt; 
> > Sent: Monday, March 12, 2007 12:35 PM &gt; To: Gambin 
> Dejan; Bart van 
> > den Eijnden OSGIS &gt; Cc: chameleon at lists.maptools.org 
> &gt; Subject: 
> > RE: [Chameleon] Smooth panning &gt; &gt; Hi Dejan, &gt; &gt; 
> > loadWMC.php is called when you click on a map on the right 
> &gt; side 
> > of the page in the GUI.
> > &gt;
> > &gt; As I said some things are specific to this application :-) so 
> > &gt; it is probably not for general use.
> > &gt;
> > &gt; How it works there is a MAP file with all 
> CONNECTIONTYPE WMS &gt; 
> > layers which defines the baselayers of the main map, and the &gt; 
> > layers to be used for the keymap. I use the following &gt; METADATA 
> > for that:
> > &gt;
> > &gt; -openlayers_baselayer: true/false &gt; 
> > -openlayers_overviewmaplayer: true/false &gt; &gt; This is how the 
> > application starts up. Then loadWMC.php can &gt; be called 
> using AJAX 
> > to add more layers/themes to the map, &gt; coming from a Web Map 
> > Context document. For this specific &gt; application it passes in a 
> > filesystem location to the WMC and &gt; uses this as an argument to 
> > loadWMC.php.
> > &gt;
> > &gt; Best regards,
> > &gt; Bart
> > &gt;
> > &gt; --
> > &gt; Bart van den Eijnden
> > &gt; OSGIS, Open Source GIS
> > &gt; http://www.osgis.nl
> > &gt;
> > &gt;
> > &gt; --------- Oorspronkelijk bericht -------- &gt; Van: 
> Gambin Dejan 
> > &lt;Dejan.Gambin at pula.hr&gt; &gt; Naar: Bart van den Eijnden OSGIS 
> > &lt;bartvde at osgis.nl&gt; &gt; Cc: chameleon at lists.maptools.org &gt; 
> > Onderwerp: RE: [Chameleon] Smooth panning &gt; Datum: 
> 12/03/07 09:05 
> > &gt; &gt; &gt; I like it very much! Can you just tell me how to try 
> > the &gt; code I have &gt; &gt; downloaded from your site? I see 
> > loadWMC.php file. Where is it &gt; &amp;quot;called&amp;quot;?
> > &gt; &gt; Sorry I am not an expert...
> > &gt; &gt;
> > &gt; &gt; best regards, dejan
> > &gt; &gt;
> > &gt; &gt; &amp;gt; -----Original Message----- &gt; &gt; 
> &amp;gt; From: 
> > Bart van den Eijnden (OSGIS) &gt; [mailto:bartvde at osgis.nl] 
> &amp;gt; 
> > &gt; &gt; Sent: Monday, March 12, 2007 11:56 AM &amp;gt; To: Gambin 
> > &gt; Dejan; Bart van &gt; &gt; den Eijnden OSGIS &amp;gt; Cc: 
> > chameleon at lists.maptools.org &gt; &amp;gt; Subject:
> > &gt; &gt; RE: [Chameleon] Smooth panning &amp;gt; &amp;gt; Indeed, 
> > that is
> still the 
> > &gt; &gt; case. My tactics were to use as &amp;gt; much OpenLayers
> controls as 
> > &gt; &gt; possible instead.
> > &gt; &gt; &amp;gt;
> > &gt; &gt; &amp;gt; You can see a small demo here:
> > &gt; &gt; &amp;gt;
> > &gt; &gt; &amp;gt;
> http://www.rijkswaterstaat.nl/apps/geoservices/kaartenonline/
> > &gt; &gt; &amp;gt;
> > &gt; &gt; &amp;gt; Best regards,
> > &gt; &gt; &amp;gt; Bart
> > &gt; &gt; &amp;gt;
> > &gt; &gt; &amp;gt; --
> > &gt; &gt; &amp;gt; Bart van den Eijnden &gt; &gt; &amp;gt; 
> OSGIS, Open 
> > Source GIS &gt; &gt; &amp;gt; http://www.osgis.nl &gt; &gt; 
> &amp;gt; 
> > &gt; &gt; &amp;gt; &gt; &gt; &amp;gt; --------- 
> Oorspronkelijk bericht 
> > -------- &amp;gt; Van:
> 
> > &gt; Gambin Dejan
> > &gt; &gt; &amp;lt;Dejan.Gambin at pula.hr&amp;gt; &amp;gt; 
> Naar: Bart van 
> > den
> Eijnden OSGIS 
> > &gt; &gt; &amp;lt;bartvde at osgis.nl&amp;gt; &amp;gt; Cc:
> chameleon at lists.maptools.org &amp;gt; 
> > &gt; &gt; Onderwerp: RE: [Chameleon] Smooth panning &amp;gt; Datum: 
> > &gt; 12/03/07 08:47
> > &gt; &gt; &amp;gt; &amp;gt; &amp;gt; Thanks Bart, I'll give 
> it a try. 
> > Can
> you tell me how 
> > &gt; &gt; does it (if
> > &gt; it
> > &gt; &gt; &amp;gt; &amp;gt; does) coexist with the other 
> widgets?  You
> said a lot of
> > &gt; chameleon
> > &gt; &gt; &amp;gt; &amp;gt; widgets won't work with this as they 
> > depend on
> &amp;gt; 
> > &gt; &gt; MapDHTML...is it still &amp;gt; &amp;gt; so?
> > &gt; &gt; &amp;gt; &amp;gt;
> > &gt; &gt; &amp;gt; &amp;gt; regards, dejan &gt; &gt; 
> &amp;gt; &amp;gt; 
> > &gt; &gt; &amp;gt; &amp;gt; &amp;amp;gt; -----Original Message-----
> &amp;gt; &amp;gt; 
> > &gt; &amp;amp;gt; From: 
> > &gt; &gt; Bart van den Eijnden (OSGIS) &amp;gt; 
> > [mailto:bartvde at osgis.nl] &gt; &amp;amp;gt; &gt; &gt; &amp;gt; 
> > &amp;gt; Sent: Monday, March 12, 2007 11:23 AM
> &amp;amp;gt; To: Gambin 
> > &gt; &gt; Dejan;
> > &gt;
> > &gt; &gt; &amp;gt; &amp;gt; chameleon at lists.maptools.org 
> &amp;amp;gt;
> Subject: RE: 
> > &gt; &gt; [Chameleon]
> > &gt; Smooth
> > &gt; &gt; &amp;gt; &amp;gt; panning &amp;amp;gt; &amp;amp;gt; Hi 
> > Dejan,
> &amp;amp;gt; &amp;amp;gt; I've
> > &gt; created a set of widgets
> > &gt; &gt; &amp;gt; &amp;gt; which integrate OpenLayers with 
> > &amp;amp;gt; &gt; Chameleon, although &gt; there are &gt; &gt; 
> > &amp;gt; &amp;gt; some things in it which can be &amp;amp;gt;
> specific 
> > &gt; to our use
> > &gt; &gt; &amp;gt; case, so you &amp;gt; &amp;gt; might 
> need to adapt 
> > a
> few 
> > &gt; &amp;amp;gt; things. 
> > &gt; &gt; It is based on
> > &gt; OpenLayers
> > &gt; &gt; &amp;gt; &amp;gt; 2.3RC2 but with some 
> &amp;amp;gt; patches
> applied. The &amp;gt; 
> > &gt; &gt; OpenLayers.js file that &amp;gt; &amp;gt; I used is in the
> &amp;amp;gt; 
> > &gt; download.
> > &gt; &gt; &amp;gt; &amp;gt; &amp;amp;gt; &gt; &gt; &amp;gt; 
> &amp;gt; 
> > &amp;amp;gt; So use it at your own risk!
> > &gt; &gt; &amp;gt; &amp;gt; &amp;amp;gt; &gt; &gt; &amp;gt; 
> &amp;gt; 
> > &amp;amp;gt; &gt; &gt; 
> > http://www.osgis.nl/download/chameleon_openlayers.zip
> > &gt; &gt; &amp;gt; &amp;gt; &amp;amp;gt; &gt; &gt; &amp;gt; 
> &amp;gt; 
> > &amp;amp;gt; Feedback is always welcome.
> > &gt; &gt; &amp;gt; &amp;gt; &amp;amp;gt; &gt; &gt; &amp;gt; 
> &amp;gt; 
> > &amp;amp;gt; Best regards, &gt; &gt; &amp;gt; &amp;gt; &amp;amp;gt; 
> > Bart &gt; &gt; &amp;gt; &amp;gt; &amp;amp;gt; &gt; &gt; &amp;gt; 
> > &amp;gt; &amp;amp;gt; -- &gt; &gt; &amp;gt; &amp;gt; 
> &amp;amp;gt; Bart 
> > van den Eijnden &amp;gt;
> &amp;gt; &amp;amp;gt; 
> > &gt; OSGIS, Open
> > &gt; &gt; Source GIS &amp;gt; &amp;gt; &amp;amp;gt; 
> > http://www.osgis.nl
> &amp;gt; &amp;gt; 
> > &gt; &amp;amp;gt;
> > &gt; &gt; &amp;gt; &amp;gt; &amp;amp;gt; &amp;gt; &amp;gt; 
> > &amp;amp;gt;
> --------- 
> > &gt; Oorspronkelijk bericht
> > &gt; &gt; -------- &amp;amp;gt; Van:
> > &gt;
> > &gt; &gt; &amp;gt; Gambin Dejan
> > &gt; &gt; &amp;gt; &amp;gt; 
> > &amp;amp;lt;Dejan.Gambin at pula.hr&amp;amp;gt;
> &amp;amp;gt; Naar:
> > &gt; chameleon at lists.maptools.org
> > &gt; &gt; &amp;gt; 
> > &amp;amp;lt;chameleon at lists.maptools.org&amp;amp;gt;
> > &gt; &gt; &amp;gt; &amp;gt; &amp;amp;gt; Onderwerp: RE: [Chameleon] 
> > Smooth
> 
> > &gt; panning &amp;amp;gt;
> > &gt; Datum: 12/03/07
> > &gt; &gt; &amp;gt; &amp;gt; 08:03 &amp;amp;gt; &amp;amp;gt; 
> > &amp;amp;gt;
> &amp;amp;gt; 
> > &gt; &amp;amp;gt; &amp;amp;gt;
> > &gt; &amp;amp;gt; &amp;amp;gt; &amp;amp;gt; &amp;amp;gt; &gt; &gt; 
> > &amp;gt; &amp;amp;gt; &amp;amp;gt; &amp;amp;gt; &gt; &gt; &amp;gt; 
> > &amp;gt; Bart, can you share some experience on this?
> > &gt; &gt; &amp;gt; &amp;gt; &amp;amp;gt; &amp;amp;gt; 
> > &amp;amp;amp;nbsp;
> &amp;gt; &amp;gt; 
> > &gt; &amp;amp;gt; &amp;amp;gt;
> > &gt; &gt; cheers &amp;gt; &amp;gt; &amp;amp;gt; &amp;amp;gt;
> &amp;amp;amp;nbsp; &amp;gt; &amp;gt; 
> > &gt; &amp;amp;gt;
> > &gt; &gt; &amp;amp;gt; dejan &amp;gt; &amp;gt; &amp;amp;gt; 
> > &amp;amp;gt;
> &amp;gt; &amp;gt; 
> > &gt; &amp;amp;gt; &amp;amp;gt;
> > &gt; &gt; &amp;gt; &amp;gt; &amp;amp;gt; &amp;amp;gt; &amp;gt; 
> > &amp;gt;
> &amp;amp;gt; &amp;amp;gt; From: Paul 
> > &gt; &gt; Spencer &amp;gt; &amp;gt; &amp;amp;gt; &amp;amp;gt; &gt; 
> > [mailto:pagameba at gmail.com] Sent:
> > &gt; &gt; Tuesday,
> > &gt; March 06, 2007
> > &gt; &gt; &amp;gt; &amp;gt; 1:04 &amp;amp;gt; &amp;amp;gt; AMTo: 
> > Gambin
> DejanSubject: Re:
> > &gt; [Chameleon]
> > &gt; &gt; &amp;gt; Smooth &amp;amp;gt; &gt; &gt; &amp;gt; &amp;gt; 
> > &amp;amp;gt; panning &amp;amp;gt; &amp;amp;gt;
> > &gt; &gt; &amp;gt; &amp;gt; &amp;amp;gt; &amp;amp;gt;   Hi 
> Gambin,Bart has
> done a 
> > &gt; first pass at
> > &gt; integrating 
> > &gt; &gt; &amp;gt; &amp;gt; &amp;amp;gt; &amp;amp;gt;   
> OpenLayers into
> Chameleon 
> > &gt; with some success
> > &gt; I believe
> > &gt; &gt; &amp;gt; &amp;gt; &amp;amp;gt; (although for WMS 
> > &gt; &gt; &amp;gt; &amp;gt; &amp;amp;gt; &amp;amp;gt;   only).We are
> currently trying 
> > &gt; to figure out
> > &gt; a technical
> > &gt; &gt; &amp;gt; &amp;gt; &amp;amp;gt; plan for a 
> > &gt; &gt; &amp;gt; &amp;gt; &amp;amp;gt; &amp;amp;gt;   potential
> Chameleon 3.0 and 
> > &gt; the big feature
> > &gt; of
> > &gt; &gt; &amp;gt; 3.0 would be a
> > &gt; &gt; &amp;gt; much
> > &gt; &gt; &amp;gt; &amp;gt; &amp;amp;gt; better AJAX &gt; &gt; 
> > &amp;gt; &amp;gt; &amp;amp;gt; &amp;amp;gt;
> mode.&amp;amp;amp;nbsp; This 
> > &gt; could happen in a
> > &gt; number
> > &gt; &gt; &amp;gt; of ways, but
> > &gt; &gt; &amp;gt; &amp;gt; &amp;amp;gt; once we decide on 
> &gt; &gt; 
> > &amp;gt; &amp;gt; &amp;amp;gt; a
> > &gt; &gt; &amp;gt; &amp;gt; &amp;amp;gt; &amp;amp;gt;   technical
> direction and 
> > &gt; secure some funding,
> > &gt; I
> > &gt; &gt; &amp;gt; expect it
> > &gt; &gt; &amp;gt; &amp;gt; &amp;amp;gt; will happen &gt; &gt; 
> > &amp;gt; &amp;gt; &amp;amp;gt; quite
> > &gt; &gt; &amp;gt; &amp;gt; &amp;amp;gt; &amp;amp;gt;   
> quickly.In the
> mean time, 
> > &gt; maybe Bart will
> > &gt; share his
> > &gt; &gt; &amp;gt; experience? 
> > &gt; &gt; &amp;gt; &amp;gt; &amp;amp;gt; &amp;amp;gt;   CheersPaul
> > &gt; &gt; &amp;gt; &amp;gt; &amp;amp;gt; &amp;amp;gt;   On 
> 3/2/07, Gambin 
> > &gt; &gt; &amp;gt; &amp;gt; &amp;amp;gt; &amp;amp;gt;   Dejan
> > &gt; &amp;amp;amp;lt;Dejan.Gambin at pula.hr&amp;amp;amp;gt; wrote:
> > &gt; &gt; &amp;gt; &amp;gt; &amp;amp;gt; &amp;amp;gt;   Hi,As 
> > &gt; &gt; &amp;gt; &amp;gt; &amp;amp;gt; &amp;amp;gt;     I 
> am not such a
> skilled 
> > &gt; developer, I have
> > &gt; to ask the
> > &gt; &gt; &amp;gt; &amp;gt; &amp;amp;gt; others - howmuch 
> > &gt; &gt; &amp;gt; &amp;gt; &amp;amp;gt; &amp;amp;gt;     
> effort would it
> take to have a
> > &gt; &amp;amp;quot;smooth
> > &gt; &gt; &amp;gt; panning&amp;amp;quot; &gt; &gt; &amp;gt; feature 
> > &gt; &gt; &amp;gt; &amp;gt; &amp;amp;gt; as forexample
> > &gt; &gt; &amp;gt; &amp;gt; &amp;amp;gt; &amp;amp;gt;     ka-map or
> openlayers? Is it 
> > &gt; possible at
> > &gt; all? 
> > &gt; &gt; &amp;gt; I find it very 
> > &gt; &gt; &amp;gt; &amp;gt; &amp;amp;gt; &amp;amp;gt;     
> nice/interesting
> and I 
> > &gt; would very much
> > &gt; like
> > &gt; &gt; &amp;gt; to develop
> > &gt; &gt; &amp;gt; &amp;gt; &amp;amp;gt; it, but I 
> > &gt; &gt; &amp;gt; &amp;gt; &amp;amp;gt; &amp;amp;gt;     
> evendon't know
> where to 
> > &gt; start. So any
> > &gt; &gt; &amp;gt; &amp;gt; &amp;amp;gt; information/advice on this 
> > topic
> &amp;gt; 
> > &gt; &amp;gt; &amp;amp;gt;
> > &gt; &gt; &amp;gt; &amp;gt; &amp;amp;gt; &amp;amp;gt;     
> willbe very
> welcome.regards, 
> > &gt; &gt; &amp;gt; &amp;gt; &amp;amp;gt; &amp;amp;gt;    
> > &gt; dejan_______________________________________________
> > &gt; &gt; &amp;gt; Chameleon 
> > &gt; &gt; &amp;gt; &amp;gt; &amp;amp;gt; &amp;amp;gt;     mailing
> > &gt; &gt; &amp;gt; &amp;gt; &amp;amp;gt; &gt; 
> > listChameleon at lists.maptools.orghttp://lists.maptools.org/mail
> > &gt; &gt; &amp;gt; &amp;gt; &amp;amp;gt; man/listinfo/chameleon 
> > &amp;gt;
> &amp;gt; &amp;amp;gt;
> > &gt; &gt; &amp;gt; &amp;gt; &amp;amp;gt; &amp;amp;gt;     
> > &gt; &gt; &amp;gt; &amp;gt; &amp;amp;gt; &amp;amp;gt; &gt; &gt; 
> > &amp;gt; &amp;gt; &amp;amp;gt; &amp;amp;gt; &gt; &gt; &amp;gt; 
> > &amp;gt; &amp;amp;gt; &amp;amp;gt; &gt; &gt; &amp;gt; &amp;gt; 
> > &amp;amp;gt; &amp;amp;gt; &gt; &gt; &amp;gt; &amp;gt; &amp;amp;gt; 
> > &amp;amp;gt; &gt; &gt; &amp;gt; &amp;gt; &amp;amp;gt; &amp;amp;gt; 
> > &gt; _______________________________________________
> > &gt; &gt; &amp;gt; &amp;gt; &amp;amp;gt; &amp;amp;gt; Chameleon 
> > mailing
> list &amp;gt; 
> > &gt; &amp;gt; &amp;amp;gt;
> > &gt; &gt; &amp;amp;gt; Chameleon at lists.maptools.org &amp;amp;gt;
> &amp;amp;gt;
> > &gt;
> > &gt; &gt; &amp;gt; &amp;gt;
> http://lists.maptools.org/mailman/listinfo/chameleon
> > &gt; &gt; &amp;gt; &amp;gt; &amp;amp;gt; &amp;amp;gt; &gt; &gt; 
> > &amp;gt; &amp;gt; &amp;amp;gt; &gt; &gt; &amp;gt; &amp;gt; 
> > &amp;amp;gt; &gt; &gt; &amp;gt; &amp;gt; &amp;amp;gt; &gt; &gt; 
> > &amp;gt; &amp;gt; &amp;amp;gt; &gt; &gt; &amp;gt; &amp;gt; 
> &gt; &gt; 
> > &amp;gt; &amp;gt; &gt; &gt; &amp;gt; &gt; &gt; &amp;gt; &gt; &gt; 
> > &amp;gt; &gt; &gt; &amp;gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
> > 
> > 
> 
> 



More information about the Chameleon mailing list