Thank you very much Pierre

it works!

Valerio

----- Original Message ----- From: "Pierre GIRAUD" <[EMAIL PROTECTED]>
To: "Valerio Noti" <[EMAIL PROTECTED]>; "Cartoweb List" 
<[email protected]>
Sent: Friday, May 19, 2006 1:19 PM
Subject: Re: [Cartoweb-users] Outline problem


OK, as I can note it, the code of dhmltInit.js is from Cartoweb 3.1 release version whereas the 1.26 version of httpRequestHandler.php correspond to the 3.2 one.
You can patch it modifying "line" to "polyline" on line 102. This would 
temporaly correct the issues you encounter.
But the best way to get rid of such errors is to get cartoweb files all related 
to the same release version.

Regards.

Pierre

Valerio Noti wrote:

Pierre,

I attach my dhtmlInit.js file.
I changed code in the cartoweb mainstream (cartoweb3/htdocs/js) without overriding the project (I know this is not a good thing..)


Thank you very much

Valerio


----- Original Message ----- From: "Pierre GIRAUD" <[EMAIL PROTECTED]>
To: "Valerio Noti" <[EMAIL PROTECTED]>
Sent: Friday, May 19, 2006 11:55 AM
Subject: Re: [Cartoweb-users] Outline problem


Can you send me your dhtmlInit.js file ?
Did you change the code in the cartoweb mainstream (ie. cartoweb3/htdocs/js) or 
did you overload it in your project ?

Note : in current version (CVS) there is a different implementation of query that proposes different types of shapes (point, rectangle, circle or polygon).

Pierre

Valerio Noti wrote:

Pierre,

Did you update any files from CVS recently ?


no

What is the version number of the HttpRequestHandler.php file 
(cartoweb3/client).



* @version $Id: HttpRequestHandler.php,v 1.26 2005/11/30 14:06:12 olivier Exp $

Do the dhmlFeatures.js file (cartoweb3/htdocs/js) contain something like the 
following code :



yes

/**
* Create a polyline
* @return polylineObj object created (
*/
function Polyline() {
 var feature = new Feature();
 feature.type = "polyline";
 return feature;
};

***********************************
***********************************
***********************************
***********************************

I surely modified other files:

i.e.  carto.js (commented a few lines) and dhtmlInit.js
[...]
Map.prototype.query = function(aDisplay) {
 this.zoomout(aDisplay);
 this.getDisplay(aDisplay).docObj.style.cursor = "help";
};
[...]
with zoomout instead of zoomin in order to perform a query by point.


Thank you very much

Valerio





--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.392 / Virus Database: 268.6.0/342 - Release Date: 17/05/2006




--
_________________________________________________________
Pierre GIRAUD
Géomaticien, Analyste

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex
Tel : 00 33 4 79 44 44 93
Mail : [EMAIL PROTECTED]
http://www.camptocamp.com



--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.392 / Virus Database: 268.6.1/343 - Release Date: 18/05/2006


_______________________________________________
Cartoweb-users mailing list
[email protected]
http://lists.maptools.org/mailman/listinfo/cartoweb-users

Reply via email to