[Cartoweb-users] fullextent / default location

wochter wochter at seznam.cz
Tue Sep 25 08:47:56 EDT 2007


Thank you very much.

wochter


Oliver Christen  wrote / napísal(a):
> the fullextent tool use the initialMapStates bbox data
> 
> $this->fullExtent =
> $this->cartoclient->getInitialMapState()->location->bbox;
> 
> if you want to change this behaviour, you need to extend the location
> plugin
> 
> im not sure but I think you can simply modify the handleInit function with
> $this->fullExtent = $locationInit->fullExtent;
> instead of
> $this->fullExtent =
> $this->cartoclient->getInitialMapState()->location->bbox;
> 
> if this doesnt work, you can try to add a new parameter in the
> location.ini file with the real full extent, that way you can simply use
> it like this in function handleFullExtent:
> 
> $bboxRequest->bbox = $this->getConfig()->realFullExtent;
> ( realFullExtent being the new param in config )
> instead of the existing
> $bboxRequest->bbox = $this->fullExtent;
> 
> regards
> Oliver
> 
>> Hi,
>> at startup I use the location:
>> mapInfo.initialMapStates.default.location.bbox = "-428123, -1234269,
>> -410497, -1221931"
>> (In mapfile is defined bigger location.)
>>
>> The problem is fullextent tool doesn't use full extent, but this
>> default location.
>>
>> How can I set it please?
>>
>>
>> Thank you
>>
>> wochter
>> _______________________________________________
>> Cartoweb-users mailing list
>> Cartoweb-users at lists.maptools.org
>> http://lists.maptools.org/mailman/listinfo/cartoweb-users
>>
> 
> 




More information about the Cartoweb-users mailing list