[mapserver-users] javascript query template examples

Steve Lime Steve.Lime at dnr.state.mn.us
Fri Oct 23 10:20:44 PDT 2009


You can set whatever mimetype you'd care to. The template driver makes no
assumptions in that regard...

Steve

>>> On 10/23/2009 at 10:37 AM, in message
<1256312256803-3879441.post at n2.nabble.com>, Ted Spradley
<tspradley at snoogems.com> wrote:

> Sorry, included link to the IANA RFC ...
> http://www.rfc-editor.org/rfc/rfc4329.txt 
> 
> 
> Ted Spradley wrote:
>> 
>> Steve, 
>> 
>> Regarding the MIMETYPE directive of OUTPUTFORMAT, I was just reading
>> RFC-4329 (http://www.rfc-editor.org/rfc/rfc4329.txt) that was marking the
>> mimetype 'text/javascript' as obsolete, preferring mimetype
>> 'application/javascript'.  Is use of both mimetypes interchangeable for
>> MapServer?
>> 
>> Thanks, Ted S.
>> 
>> Steve Lime wrote:
>>> 
>>> 
>>> The TEMPLATE keyword is still used to make layers queryable. That may
>>> change
>>> in the future. Simple using something like TEMPLATE 'dummy' will suffice.
>>> 
>>>>> The OUTPUTFORMAT:
>>>>> 
>>>>> OUTPUTFORMAT
>>>>>     NAME 'county_select_list'
>>>>>     DRIVER 'TEMPLATE'
>>>>>     MIMETYPE 'text/javascript'
>>>>>     FORMATOPTION 'ATTACHMENT=county_select_list.js'
>>>>>     FORMATOPTION 'FILE=/templates/demo_county_select_list.js'
>>>>> END
>>>> 
>>>> What is the difference in ATTACHMENT and FILE?
>>> 
>>> 
>> 
>> 




More information about the MapServer-users mailing list