The Zurich release has arrived! Interested in new features and functionalities? Click here for more

List of all Google Map Icons, useful for SNOW map Pages

gmorales
Kilo Expert

Hey guys I've found this list of all Icons used by Google maps, this could be useful when customer wants to display incidents in a map and difference them by some category or Impact.

I hope this list could be useful.

Google map markers | CTAPbIu_MABP's BLOG

4 REPLIES 4

bianca_vaccarin
ServiceNow Employee
ServiceNow Employee

Neat! Thanks for sharing


rgm276
Mega Guru

if you're looking to add some additional flare the google developers site references this website where you can download marker/icons to use on your maps


Map Icons Collection | Google Maps Icons, Map Markers, Free POI Icons, GIS Symbols


Woah! there are tons of it, but are those Icons needs to be downloaded ?


gmorales
Kilo Expert

This could be useful too, In order to display those icons that Robert Mitchell mentioned before, In your map page, do the following:



After download your icons and unpack the zip



  1. Attach the Icon your map page. (Click on the paper clip Icon or just Drag to the map page form.)
  2. Click on [View] link, at the top bar where your attachments are displayed.
  3. Once the pop up windows displays your attached image copy the url and add it to your code.

And Voilí  !


ServiceNow Service Automation.png


Example code:



var gr = new GlideRecord("incident");


gr.addQuery('priority', '1');


gr.addActiveQuery();


gr.query();


while (gr.next()) {


    var item = map.addItem(gr);


    item.latitude = gr.location.latitude;


    item.longitude = gr.location.longitude;


    item.dialog_title = gr.getDisplayValue();


    item.marker_label = "<img src='https://[servicenowinstance]/sys_attachment.do?sysparm_referring_url=tear_off&view=true&sys_id=[sys_... attachment]' border='no' >";




}