Want to disable scalebar for serving WMS requests
Vincent J. Troisi
Vincent.Troisi at COLORADO.EDU
Mon Dec 19 10:13:36 PST 2005
Ken,
Thanks. This was just what I needed.
Vince
__________________________________________________________________
Vincent J. Troisi
University of Colorado, Boulder/CIRES/NSIDC
Voice: (303) 492-1827 FAX: (303) 492-2468
E-Mail: Vincent.Troisi at Colorado.EDU
__________________________________________________________________
On Fri, 16 Dec 2005, Ken Lord wrote:
> Hi Vincent,
>
> You could set the status in your mapfile to ON instead of embed to
> make it work with WMS, and for your regular map requests, include a
> hidden input statement in your form (or within the URL) that alters
> the value on the fly.
>
> For the html form it would be:
> <DEFANGED_input type="hidden" name="map_scalebar_status" value="embed">
>
> For the URL, it would be:
> http:\\ .... &map_scalebar_status=embed
>
> Cheers,
> Ken Lord
> Vancouver BC
>
>
> On 12/16/05, Vincent J. Troisi <Vincent.Troisi at colorado.edu> wrote:
>> I have a scalebar object defined in my mapfile (see below).
>> The mapfile is used for a browse application. I'd like
>> to use the same mapfile to service WMS requests without
>> the scalebar being served with the map request. Is there
>> some attribute I'm missing that will enable the embedding
>> of the scalebar for a browse request on the local
>> mapserver application but prevent the scalebar from
>> being embedded on a map returned from a WMS request?
>>
>> Thanks,
>> Vince
>>
>>
>>
>>
>> __________________________________________________________________
>> Vincent J. Troisi
>> University of Colorado, Boulder/CIRES/NSIDC
>> Voice: (303) 492-1827 FAX: (303) 492-2468
>> E-Mail: Vincent.Troisi at Colorado.EDU
>> __________________________________________________________________
>>
>
More information about the MapServer-users
mailing list