Adding a Legend to Google Maps

jacobpeterson
Mega Expert

Hello,

Has anyone had any luck adding a Legend to Google Maps? I was able to configure having different icons but I need a legend in order for them to make sense. I found information on how to add a Legend to a Google Maps API but I'm not sure how to incorporate this into ServiceNow:

Customizing a Google Map: Custom Legends   |   Google Maps JavaScript API   |   Google Developers

Thanks for the help!

7 REPLIES 7

Rajesh Mushke
Mega Sage
Mega Sage

Hey Jacob,



Might be helpful to you.



Please Refer:


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


Link to Google Maps


Map pages




Thanks,
Rajashekhar Mushke
Rising star : 2022 - 2024
Community Leader -2018
Connect me on LinkedIn : Rajashekhar Mushke

Rajesh Mushke
Mega Sage
Mega Sage

Any update on this, let me know if you need more help.




if your query is answered,can you please this thread then only this will be helpful for other community user.



If I have answered your question, please mark my response as correct so that others with the same question in the future can find it quickly and that it gets removed from the Unanswered list.


If you are viewing this from the community inbox you will not see the correct answer button.   If so, please review How to Mark Answers Correct From Inbox View




Thanks,
Rajashekhar Mushke
Rising star : 2022 - 2024
Community Leader -2018
Connect me on LinkedIn : Rajashekhar Mushke

Hello,



Unfortunately, none of these posts are helpful with my issue.


you can use your script in map pages



Create a map page:

Your ServiceNow instance provides several default map pages. You can also create custom map pages with the script examples described in this page.



Before you begin


Role required: admin


About this task


The default map page record displays critical incidents on a Google


map page.



Default map page record



Procedure


  1. Navigate to System UI > Map Pages.
  2. Click New.
  3. Complete the form, using the fields in the table.


    FieldDescription
    NameEnter a unique name to identify the map.
    Center map onEnter the the location for centering the map using the decimal form of latitude and longitude. For example, to center the map on the statue of liberty, enter 40.689865, -74.045235.
    Initial zoomSet the zoom level of the map on opening.
    Controls sizeSelect whether the Google navigation icons on the map should be large or small.
    TypeSelect a map background style: Satellite, Hybrid, Normal, or Terrain.
    Type selectionSelect which type of Google icons to display on the map: Buttons orMenu.
    Map overviewEnable or disable a wide view map window for navigation.
    ScriptCreate a script to define the type of data to display on this map. .
    Fields you can add by configuring the form.
    Center latitudeThe latitude the map page will center on. The business rule Geocode Address populates this field.
    Center longitudeThe longitude the map page will center on. The business rule Geocode Address populates this field.


  4. Save the record.


PLease Refer:


Create a map page module


Set up Google Maps API




Thanks,
Rajashekhar Mushke
Rising star : 2022 - 2024
Community Leader -2018
Connect me on LinkedIn : Rajashekhar Mushke