This discussion has been locked. The information referenced herein may be inaccurate due to age, software updates, or external references.
You can no longer post new replies to this discussion. If you have a similar question you can start a new discussion in this forum.

Google Maps in Orion NPM - How to Video

I've made some changes to the original Google Maps that I introduced about this time last year. This version provides a status icon on the map for each unique latitude and longitude value in the database. I'm leaving the old one up as it is better for environments where a large number of sites exist, and would simply be too cluttered with a status icon at each site.

Prerequisites:

1) Obtain Google API Key for Maps v3

2) Create and populate Custom Properties:

  • Country
  • City
  • Latitude
  • Longitude

Installation:

Copy files to the c:\inetpub\SolarWinds\Orion\GoogleMap\

Update your connection string and API key

Create a view in NPM using the Custom HTML resource, configure iFrame

See the movie (how to install the mod):

2013-07-25_10-43-25 - YouTube

Read the book (asp files, readme, notes on GitHub):

https://gist.github.com/BarefootAtomic/a396a12541ff97a2ce1f

map.png

Enjoy!

Andrew LaGrone, SCP#1368

GoogleMap1.4.zip
Parents
  • I've been working on trying to fix the zoom of my map. I want it to display all of NA when I open the main page of my map. A few things I've tried, but they have not affected the zoom of the map:

    ----------------------------------------------------------

    <iframe src="X.X.X.X/Orion/GoogleMap/GoogleMap.aspx?&maptype=TERRAIN&radar=true&State=TX&zoom=1" width="100%" frameborder=0 height=700 scrolling=no align=center></iframe>

    -----------------------------------------------------------

    <iframe src="X.X.X.X/Orion/GoogleMap/GoogleMap.aspx?&maptype=TERRAIN&radar=true&State=TX&z=1" width="100%" frameborder=0 height=700 scrolling=no align=center></iframe>

    -----------------------------------------------------------

    I've also modified the "GoogleMap.aspx" file where it said "zoom: 100" and modified:

    <style type="text/css">

      html { height: 100%; }

      body { height: 100%; margin: 0px; padding: 0px

      #map_canvas { height: 100% }

    </style>

    and tried to add zoom in various places in that section of code.

    Any suggestions are welcome please!

Reply
  • I've been working on trying to fix the zoom of my map. I want it to display all of NA when I open the main page of my map. A few things I've tried, but they have not affected the zoom of the map:

    ----------------------------------------------------------

    <iframe src="X.X.X.X/Orion/GoogleMap/GoogleMap.aspx?&maptype=TERRAIN&radar=true&State=TX&zoom=1" width="100%" frameborder=0 height=700 scrolling=no align=center></iframe>

    -----------------------------------------------------------

    <iframe src="X.X.X.X/Orion/GoogleMap/GoogleMap.aspx?&maptype=TERRAIN&radar=true&State=TX&z=1" width="100%" frameborder=0 height=700 scrolling=no align=center></iframe>

    -----------------------------------------------------------

    I've also modified the "GoogleMap.aspx" file where it said "zoom: 100" and modified:

    <style type="text/css">

      html { height: 100%; }

      body { height: 100%; margin: 0px; padding: 0px

      #map_canvas { height: 100% }

    </style>

    and tried to add zoom in various places in that section of code.

    Any suggestions are welcome please!

Children
No Data