GetMapImage

This method is available to developers from the Locate.asmx Web Service and generates a map to be returned.  This is returned as a binary PNG image stream.

Syntax
http://localhost/isharemaps_internal/locate.asmx/GetMapImage?mapsource=Workshop/AllMaps&x=123&y=456&zoom=100width=400&height=300

Parameters


Name

Requirement

Description

mapsource

mandatory

A list can be obtained from the GetMapSources method. This needs to be the name of the .xml file (without the .xml extension) not the name of the MapSource in Studio.

x

mandatory

Easting in British National Grid meters

y

mandatory

Northing in British National Grid meters

zoom

mandatory

Zoom in METERS for the map

width

mandatory

Width in pixels of the resultant image

height

mandatory

Height in pixels of the resultant image

Returns

MapSpur Envelope including a map view definition (of the resultant view), the map image byte array, time elapsed on the server to process and also and error message and error code.

Errors

Raises error – Invalid Map Source