jamesdales / IconMapSupport

MIT License
7 stars 1 forks source link

Using CRS EPSG:4326 causes the background layer to disappear. #2

Open casa-henrym opened 1 year ago

casa-henrym commented 1 year ago

To reproduce:

  1. Use the example PBIX from the website: https://icon-map.com/pbix/WKT.pbix
  2. Select the Icon Map visual to edit the settings
  3. Go to "Format your visual" > "Visual" > "Coordinate Reference System"
  4. Change the value to "EPSG4326"

The background layer disappears. Running through the list, EPSG:3395 appears to work but none of the others do.

jamesdales commented 1 year ago

Hi. The use of different coordinate systems vs different map projections is a work in progress at the moment. It's requiring quite a bit of work to get right across all of Icon Maps's capabilities.

At the moment the default is Icon Map requests tiles using the EPSG:3857 projection and expects WGS84 longitude and latitude coordinates.

For other coordinate systems / map projections, I suggest using the Proj4 options for now, but you'll need to find a tile service than can serve the tiles in the required projection.

I'm currently working on allowing different coordinate systems with the EPSG:3857 tiles and visa-versa.

maphew commented 11 months ago

I'm running into this too. I've tried using proj4 string, copying from https://epsg.io/ to ensure no typos, but the background layer disappears. After it disappears switching back to the default does not fix it. The only way to restore the map is close PowerBI Desktop and reopen.

I'm using the Sept 2023 release from the downloads page, iconMapV34089C0EB522B416294AA926F71B4FDBBx.3.3.2.1.pbiviz

Edit to add: I neglected to say that once the map goes blank I cycled through all of the coordinate systems listed and they all remained blank, until PBI is restarted.

maphew commented 11 months ago

Well that’s weird. I left work for the day, locking workstation instead of hibernating or shutting down, and leaving PBI open and my IconMap coordinate system testing project open, but with a blank map due to this bug. When I unlocked my machine the PBI map was no longer blank! I can switch between all but one of the default EPSG items and the geojson layer redraws in a new shape and zoom level. Simple xy works, and so does my custom proj4 string. Curiously the one CS which remains blank when selected is EPSG4326.