[Cartoweb-users] external link to a given extent

Oliver Christen oliver.christen at camptocamp.com
Wed Oct 3 03:02:58 EDT 2007


use filters parameters in the url:
http://www.cartoweb.org/doc_head/docbook/xhtml/dev.newplugin.html#dev.newplugin.special.filters
for example, ?recenter_bbox=xmin,ymin,xmax,ymax will automaticaly recenter 
on the given bbox

.../cartoweb3/htdocs/demoPlugins.php?recenter_bbox=257274,5106766,373341,5180484

regards
Oliver


> Hello,
>
> I need to provide an external, direct link to some of the features in my
> map. When clicked, cartoweb should load and center on the given map
> extent.
>
> I currently see two ways of implementing this:
>     A. Pass the map extent through ENV and read it in
>        Cartoclient::getInitialMapState
>     B. Extend Cartoclient and overwrite getInitialMapState
>
> Is there a better approach? How did you/would you implement this
> feature?
>
> Thanks,
> Fred
>
> _______________________________________________
> 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