How do I include a Map type field on a form or catalog item?

wclim
Mega Sage

Hi, 

 

I like to seek some expert help on having a map type field on a form or catalog item where a requestor can click on the map to pin a location - which will populate the selected coordinates into a latitude/longitude field.

 

A simple use case can be for requestor to report an incident and select from a map the location of the incident, so that an incident can be tied to any coordinates instead of reference field cmn_location record which records have to be created beforehand.

 

I can't seem to find a way to do this from SN documentations. Does any one know of an OOB way to achieve this? Or is a custom widget the way to do this?

To help visualize, it will be something like this mockup screen below.

wclim_0-1714444403853.png

 

Regards,

Wei

1 ACCEPTED SOLUTION

James Chun
Kilo Patron

Hi @wclim,

 

I am not sure if there is an OOB way of doing this, but I did implement the exact thing a few years.

Unfortunately, I don't have access to it anymore but I referred to this great video

https://www.youtube.com/watch?v=eLxpjVZhl_M&ab_channel=JohnSpirko

This does talk about integrating with ESRI but the overall concept should be the same.

 

I do recall that the Google Map API will require a paid subscription.

 

Cheers

View solution in original post

Explains how to get and use an ESRI map, in a ServiceNow variable set, to populate location fields for a ServiceNow catalog request. Update set can be downloaded here: https://drive.google.com/file/d/1WwgXUQ39p8-asE2m7adY6l1FCYLl3i1C/view?usp=sharing
2 REPLIES 2

James Chun
Kilo Patron

Hi @wclim,

 

I am not sure if there is an OOB way of doing this, but I did implement the exact thing a few years.

Unfortunately, I don't have access to it anymore but I referred to this great video

https://www.youtube.com/watch?v=eLxpjVZhl_M&ab_channel=JohnSpirko

This does talk about integrating with ESRI but the overall concept should be the same.

 

I do recall that the Google Map API will require a paid subscription.

 

Cheers

Explains how to get and use an ESRI map, in a ServiceNow variable set, to populate location fields for a ServiceNow catalog request. Update set can be downloaded here: https://drive.google.com/file/d/1WwgXUQ39p8-asE2m7adY6l1FCYLl3i1C/view?usp=sharing

Thanks @James Chun ,

 

Looks like a custom solution using an open source mapping library like LeafletJS is the way to go.