Pierre,
tried but user message is always "ID recenter layer not found"
Is the "id_recenter_layer" an integer from the order of the list in location.ini

idRecenterLayers = msParcs, msEdif, ecc..

and so it would be

myproject.php?id_recenter_layer=1&id_recenter_ids=123

if I want to use msEdif (layers name from mapfile)?

More, metadata in mapfile are:

     "exported_values" "recenter_name_string,id_attribute_string"
     "recenter_name_string" "I_D"
     "id_attribute_string" "I_D|string"

are these correct for this type of request?

thank you

Valerio



----- Original Message ----- From: "Pierre GIRAUD" <[EMAIL PROTECTED]>
Cc: <[email protected]>
Sent: Thursday, March 16, 2006 11:10 AM
Subject: Re: [Cartoweb-users] calling project and recentering on an id


Sure you can.

The posted form parameters "id_recenter_layer" and "id_recenter_ids" can also be use in get requests.
The url would be something like :

myproject.php?id_recenter_layer=id_of_layer_to_recenter_on&id_recenter_ids=123

Regards

Pierre GIRAUD

Valerio Noti wrote:

Sorry for my last message: It had the same content of this one but a wrong object (was 'managing project')

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

Hello,

I'd like to call a cartoweb project from an external page and after a
database query.

Once I have an object id (and a mapfile metadata "id_attribute_string"
"I_D|string") is it possible to call a project with something like:

myproject.php?id=123

and recentering the map with a certain scale?

Or, if not, is there a way to retrieve coordinates of an object starting
from an id and calling the project with

myproject.php?recenter_bbox=23,45,56,70

This solution would be probably better.

Thanks in advance

Regards

Valerio

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



--
_________________________________________________________
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

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


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



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

Reply via email to