Change geopoint marker

1595
4
Jump to solution
10-18-2023 12:37 PM
mikaël
Frequent Contributor

Yet again trying to decipher esri's cryptic and convoluted documentation!

Can anybody help me trying to change the default marker when creating a geopoint question in Survey123 Connect?

From what I gather hereit seems to be possible to change the icon with one of these without having to download it and put it in the media folder, but I cannot seem to manage this task, probably reserved for our best and brightest.

Thanks for your help!! 🙂

0 Kudos
1 Solution

Accepted Solutions
IsmaelChivite
Esri Notable Contributor

 

  • Create a PNG file (dont make it bigger than 512 by 512 to keep the size low

For example: I downloaded gardener.png from FlatIcon

  • Copy it into the media folder of your survey

Custom Icon.gif

 

  • In the body::esri:style, for your geopoint question, reference the PNG file as shown below

IsmaelChivite_0-1697659626686.png

  • Download and test in the mobile app

IsmaelChivite_1-1697659243033.png

 

Gotchas:

  • You were looking at the wrong help topic section. The correct help topic section is called Geopoint symbology here: https://doc.arcgis.com/en/survey123/desktop/create-surveys/geopoints.htm#ESRI_SECTION1_DF5D4AC0546B4...   Geopoint symbology and overlays are different things.
  • The above will work in the mobile app. Will not work in the web app
  • Make sure the name of the file you reference in the XLSForm matches exactly the name of the file you copied to the media folder
  • The PNG file is placed horizontally centered at the location but vertically, it uses the bottom of the PNG. If you want to center your PNG exactly at the location, use the x y parameters as follows:

symbol=gardener.png?x=0.5&y=0.5

 

View solution in original post

4 Replies
IsmaelChivite
Esri Notable Contributor

 

  • Create a PNG file (dont make it bigger than 512 by 512 to keep the size low

For example: I downloaded gardener.png from FlatIcon

  • Copy it into the media folder of your survey

Custom Icon.gif

 

  • In the body::esri:style, for your geopoint question, reference the PNG file as shown below

IsmaelChivite_0-1697659626686.png

  • Download and test in the mobile app

IsmaelChivite_1-1697659243033.png

 

Gotchas:

  • You were looking at the wrong help topic section. The correct help topic section is called Geopoint symbology here: https://doc.arcgis.com/en/survey123/desktop/create-surveys/geopoints.htm#ESRI_SECTION1_DF5D4AC0546B4...   Geopoint symbology and overlays are different things.
  • The above will work in the mobile app. Will not work in the web app
  • Make sure the name of the file you reference in the XLSForm matches exactly the name of the file you copied to the media folder
  • The PNG file is placed horizontally centered at the location but vertically, it uses the bottom of the PNG. If you want to center your PNG exactly at the location, use the x y parameters as follows:

symbol=gardener.png?x=0.5&y=0.5

 

mikaël
Frequent Contributor

I wished it was possible to do without setting a custom image in the media folder, but I guess that's not  an option right now.

Thanks for a great answer!

0 Kudos
ahargreaves_FW
Frequent Contributor

@IsmaelChivite what if I already have something in body::esri:style such as 'map=xyzxyzxyz' ?

0 Kudos
SLowman_NCE
New Contributor

Does this change the marker in a report that's generated from the survey?

0 Kudos