Dashboards & Visualizations

amMap App: Change height of map

MHibbin
Influencer

Hi all,

I have to regularly switch between using the GoogleMaps app and amMap app (I think both are equally great for different situations), depending the general audience preference/use-case. One thing I noticed was that I couldn't see an immeadiate method for changing the height of the amMap maps.

I have tried modifying the panel, but as it uses "ServerSideInclude" this does not support the height param.

Can anyone assist with this?

Regards,

Matt

Tags (3)
0 Karma
1 Solution

MHibbin
Influencer

The solution...

After copying the relevant files to "my app", you need to "vi" (or whatever text editor you may use) the following file..

$SPLUNK_HOME/etc/apps/foo/appserver/static/ammap.html

Assuming, you have not changed the filename for the HTML, and where "foo" is your app's name.

Looking for the following line..

 var so = new SWFObject("/static/app/amMap/ammap/ammap.swf", "ammap", "100%", "400", "8", "#FFFFFF");

And modifying the "400" to the height you require. For example, this will change the panel height to 700pixels.

 var so = new SWFObject("/static/app/amMap/ammap/ammap.swf", "ammap", "100%", "700", "8", "#FFFFFF");

Hope this helps.

🙂

View solution in original post

MHibbin
Influencer

The solution...

After copying the relevant files to "my app", you need to "vi" (or whatever text editor you may use) the following file..

$SPLUNK_HOME/etc/apps/foo/appserver/static/ammap.html

Assuming, you have not changed the filename for the HTML, and where "foo" is your app's name.

Looking for the following line..

 var so = new SWFObject("/static/app/amMap/ammap/ammap.swf", "ammap", "100%", "400", "8", "#FFFFFF");

And modifying the "400" to the height you require. For example, this will change the panel height to 700pixels.

 var so = new SWFObject("/static/app/amMap/ammap/ammap.swf", "ammap", "100%", "700", "8", "#FFFFFF");

Hope this helps.

🙂

Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...