Showing results for 
Search instead for 
Do you mean 

Slow performance on GeoMedia WebMap SVG map

by Technical Evangelist on ‎06-08-2016 05:08 PM - edited on ‎04-13-2017 06:44 AM by Technical Evangelist (1,237 Views)

Question

Slow performance on WebMap SVG map - why does it take so long (> 10sec) for my SVG map to load on my WebMap Publisher site? 

Answer

Chances are your SVG (uncompressed) file is too big and contains too much scale inappropriate data.

 

Here are some recommendations that can help trim down the SVG file size:

(1) Review map content to exclude features that are not scale appropriate.

(2) Thin out (or generalize) scale inappropriate feature into scale appropriate feature for large scale use.

(3) Remove hotspots and tooltips for all features unless specifically required.

(4) Use WebMap's Vector Quality parameter to thin data.

 

The goal is to keep the svg (uncompressed) file size to around 100Kb.

To give you a better idea, here is breakdown of a 2.8Mb uncompressed SVG that we received from a customer:

  • The SVG XML document contains > 35,000 elements.
  • 16,750 displayed graphics (2 elements each).
  • 1,525 tool tips.
  •  The SVG plots into a 600x900 (540K pixels) area.
  • When plotted, all graphics use about 15K pixels (excluding color fill).
  • The SVG includes just over 105,000 plotted coordinates.

 

To put that in perspective:

  • On average, the SVG file plots 7 coordinates per displayed pixel.
  • On average, the SVG file uses a little less than 1 pixel per plotted graphic.
  • Several hundred of the plotted graphics are large enough that they create the map as users would observe it.
  • The majority of the plotted objects appear as single pixels, many over-plotting one another.

Virtually the same map content could easily be delivered in a 20 to 40K SVG.

 

This pre-made 2.8Mb svg file takes more than 12 seconds for "IE/Adobe SVG Viewer" to load, and remember you need to add the actual map creation time on top of the 12 seconds, plus network traffic etc.

 

Same principles apply to GWM Flash
 
 

Comments
by Technical Evangelist
on ‎06-08-2016 05:13 PM

This is a good article from the v6.1 days and is still relevant to v15 Portal svg map.

Contributors