map map
Image map data.
req=map[,text|{xml[, *
encoding*]}|{json[&id= *
reqId*]}]
Returns catalog::Map
without modification when querying a simple catalog entry with no additional commands specified (does not scale to catalog::maxPix
).
If any other commands are specified in the request, a composite image map is returned. The composite image map is derived by scaling, cropping, rotating, and layering all catalog::Map
and/or map=
commands included in the request, just like the image data would be with req=img
.
Specify text
or omit the second parameter so you can return the image map data in form of an HTML <AREA>
element string with response MIME type text/plain
.
Specify xml
so you can format the response as XML instead of HTML. Text encoding can be specified optionally. The default is UTF-8
.
Returns an empty string (or empty <AREA>
element) if no map data was found for the specified catalog objects, and/or if no <AREA>
elements remain after cropping the images.
The HTTP response is cacheable with the TTL based on catalog::Expiration
.
Requests that support JSONP response format lets you specify the name of the JS callback handler using the extended syntax of req=
parameter:
req=...,json [&handler = reqHandler ]
The <reqHandler>
is the name of the JS handler that is present in the JSONP response. Only a-z, A-Z, and 0-9 characters are allowed. Optional. The default is s7jsonResponse
.
See Image Maps.