[mapserver-users] Multi template

pe_lord pe_lord at yahoo.ca
Thu May 11 10:35:36 PDT 2017


But how to control the layer to use. 
In the case where my templates varies for each layer. Do I have to call an
new name at each call like this?

LAYER1  call looks like  : ...&INFO_FORMAT=application/json1 
LAYER2  call looks like  : ...&INFO_FORMAT=application/json2


OUTPUTFORMAT
  NAME 'json1'
  DRIVER TEMPLATE
  MIMETYPE 'application/json1; subtype=geojson'
  TEMPLATE 'templ1.js'
END

OUTPUTFORMAT
  NAME 'json2'
  DRIVER TEMPLATE
  MIMETYPE 'application/json2; subtype=geojson'
  TEMPLATE 'templ2.js'
END
 
I don't understant how to control the template calling and redirection to
the right template.




--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Multi-template-tp5317599p5320221.html
Sent from the Mapserver - User mailing list archive at Nabble.com.


More information about the mapserver-users mailing list