[OpenLayers-Users] How to extend permalink and argparser to support additional parameters

Eric Lemoine eric.c2c at gmail.com
Thu Nov 20 12:37:08 EST 2008


Hi Stephen

I don't see a more subtle way than implement two classes, one
inheriting from ArgParser, and another inheriting from Permalink. The
former will deal with the routing-related params in the URL. The
latter would extend the updateLink method so that the resulting link
includes the routing params.

For this I'm afraid you'll have to look at the code of ArgPasses and
Permalink and understand what it does.

Maybe someone has better ideas...

Eric

2008/11/18, Stephen Woodbridge <woodbri at swoodbridge.com>:
> Hi all,
>
> I'm wondering if anyone has a good example of extending permalink and
> argparser to support additional parameters. What is the best practice
> for doing this? I can rewrite these for what I need to do, but I thought
> there might be a more subtle way to do this that I'm not seeing.
>
> For example, I have a page the integrates with pgRouting and I would
> like to also save the start point, end point, method. Then when the url
> is called, check if these are set and make an ajax call to get the route.
>
> Thanks for any ideas or examples you might be able to offer.
>
> Best regards,
>    -Steve
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
>



More information about the Users mailing list