Firefox misses offsetX at the parent of the SVG tag.
Set offsetX only if it is undefined
Merge pull request #9 from ThinkerYzu/fix-minimap-layerX

Firefox misses offsetX at the parent of the SVG tag.