Optimize icon file sizes?

  • 1
  • Question
  • Updated 4 years ago
  • Answered
Once a map is made, is there any way to optimize the size of the custom icons I am using inside it? I actually don't know how big the icon file sizes are, and can't seem to find where the Library stores it's files so I can double check it.

I need to find out if any of the files are abnormally large for an icon because I am running into Out of Memory errors fairly regularly at this point.
Photo of Mike Danielski

Mike Danielski

  • 191 Posts
  • 6 Reply Likes

Posted 4 years ago

  • 1
Photo of aHa!Coaching

aHa!Coaching, Champion

  • 1192 Posts
  • 116 Reply Likes
I think Custom Icons are stored within the map file itself, so there is no easy way to check the file size of the icons.
Photo of Mike Danielski

Mike Danielski

  • 191 Posts
  • 6 Reply Likes
in the end, I "went all developer" on the map and found out not only where the icons are stored, but how they are referenced, and how to manipulate all that :)

I was able to search and replace references to unwanted icons, replaced the bloated ones with more compact versions and got them all working well in my newly modified copy of the map. I also managed to totally rearrange the topic and marker icon groups so that they made more logic sense - since I have almost 50 different groups between them.

All is good.
Photo of Alex Gooding

Alex Gooding, Champion

  • 874 Posts
  • 220 Reply Likes
Please tell us more - especially about rearranging the icon groups.
Photo of Mike Danielski

Mike Danielski

  • 191 Posts
  • 6 Reply Likes
I'd be happy to finally give something back to this most helpful community. Before I can do that though, I need to find a good free XML editor, because it makes the job a lot easier and the one I use is about $1000... not a good ROI for rearranging the marker groups.

As soon as I find a good tool, I will post the tutorial here.
Photo of Marian Kocmanek

Marian Kocmanek, Official Rep

  • 368 Posts
  • 64 Reply Likes
Mike, 

Have you tried Notepad++ or XML Notepad 2007? Both applications are free and are very user friendly. 

-Marian
Photo of Mike Danielski

Mike Danielski

  • 191 Posts
  • 6 Reply Likes
I have used them a long time ago, and will take a look at them again, thanks.

We need to identify one that has a graphical way of manipulating the XML... rather than cut-and-paste, which all to easily lends itself to disastrous results. I use OxygenXML, which is a fantastic product and has the aforementioned "tabular" editing mode where you can just drag and drop XML fragments without touching the source XML.
Photo of Mike Danielski

Mike Danielski

  • 191 Posts
  • 6 Reply Likes
I am going to create a new post to put this tutorial so it is a little easier to find in the future... titled "How to rearrange icon and Tag Groups in Map Index"
Photo of aHa!Coaching

aHa!Coaching, Champion

  • 1192 Posts
  • 116 Reply Likes
In my experience, Microsoft XML Notepad is a nice graphical way of modifying the XML