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@lists.maptools.org
http://lists.maptools.org/mailman/listinfo/cartoweb-users


_______________________________________________
Cartoweb-users mailing list
Cartoweb-users@lists.maptools.org
http://lists.maptools.org/mailman/listinfo/cartoweb-users

Reply via email to