waibu-maps 1.1.1 → 1.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "waibu-maps",
3
- "version": "1.1.1",
3
+ "version": "1.1.2",
4
4
  "description": "Maps for Waibu MPA",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -46,9 +46,11 @@ async function controlMousePos () {
46
46
  const el = document.querySelector('#${id}')
47
47
  if (!el) return
48
48
  const [lng, lat] = this.${prefix}Pos
49
+ const longitude = this.$store.map.degree === 'DMS'
50
+ const latitude = this.$store.map.degree === 'DMS'
49
51
  el.innerHTML = this.${prefix}Tpl({
50
- lng: wmpa.format(lng, 'float', { longitude: true }),
51
- lat: wmpa.format(lat, 'float', { latitude: true })
52
+ lng: wmpa.format(lng, 'float', { float: { maximumFractionDigits: 5 }, longitude }),
53
+ lat: wmpa.format(lat, 'float', { float: { maximumFractionDigits: 5 }, latitude })
52
54
  })
53
55
  }
54
56
  `, `