[Cartoweb-users] recentering on id

Alexandre Fellay alexandre.fellay at camptocamp.com
Thu Dec 8 06:45:57 EST 2005


Hi Emmanuel

Could you please post the part of your mapfile that includes the relevant 
layer(s) ? You definitelay have to define a id_attribute_string in the metadata 
of the layers you want to recenter on.
Alexandre Fellay

Emmanuel Belo wrote:
> Hi,
> 
> i try to get the recenterId form working, but the documentation is quite 
> dry about it.
> 
> It is writen that in location.ini it should be:
> 
> client-side:
> idRecenterActive = true
> idRecenterLayers = msLayer
> 
> server-side:
> recenterDefaultScale = 125000 (assuming it sould be displayed to this 
> scale)
> 
> With these parameters and an id column in the Database it doesn't 
> work... This error appears:
> 
> "Recenter Id canceled, unable to find selected Id."
> 
> 
> 
> Do we need to have in the shape file or database an "id" column? Is it 
> possible to have a non unique id? Can the id be a text string?
> 
> Is there an exemple in the demo where this works?
> 
> Best regards,
> 
> 
> 


More information about the Cartoweb-users mailing list