Skip To Content

Create picture marker sets

As a developer, you may want to customize the symbols within ArcGIS Maps for SharePoint by creating custom picture marker sets. Picture marker sets are extensions that add custom symbols to symbolize your data. Custom symbols can consist of images such as PNGs and JPGs, or URLs to an image.

pictureMarkerSet.json.txt file

When you create a custom picture marker set, you place an array of picture marker set definitions in a JSON configuration file named <picturemarkersetname>.json.txt, and place the file in the same folder as the custom symbols in the extension pack. This file determines the picture marker sets that are loaded symbolizing data.

Create a new picture marker set

The following example shows the implementation of a picture marker set that uses two images: one packaged with the extension pack and the second one as a URL pointing to an image.

[
    {
        "type": "esriPMS",
        "url": "extensionPackName/symbols/image1.png",
        "width": "20",
        "height": "20",
        "xoffset": "0",
        "yoffset": "10"
    },
    {
        "type": "esriPMS",
        "url": "http://mypicturemarkerset.com/somepicture",
        "width": "20",
        "height": "20",
        "xoffset": "0",
        "yoffset": "10"
    }
]

Note:

Some restrictions apply when naming your extension pack. If your picture marker set references a module by its absolute path (for example, acme/stuff/SomeModule), you must name the extension pack in the same manner as you name the package in a regular Dojo application (for example, acme). For more information, see Extension pack names.

Add a picture marker set to ArcGIS Maps for SharePoint

Tools, behaviors, and picture marker sets are packaged in collections named extension packs, which consists of the code files for each extension, any supporting files, and a manifest file that describes the extensions contained within that extension pack. These descriptions, written in JSON format, outline the properties of each extension; for example, a picture marker set's description must include label and location properties but may also include other optional properties.

See Add extensions for more information.