Skip to content
This repository has been archived by the owner on Oct 16, 2020. It is now read-only.

DnD and custom basemaps #43

Open
tr3vorm opened this issue Dec 13, 2016 · 0 comments
Open

DnD and custom basemaps #43

tr3vorm opened this issue Dec 13, 2016 · 0 comments

Comments

@tr3vorm
Copy link
Contributor

tr3vorm commented Dec 13, 2016

I have just discovered that I cannot add CSV files to custom basemaps (e.g. NZTM SRID=2193), however adding shapefiles seemed to work fine. I tried with both geographic and rectangular coordinates.

A quick and dirty fix for me was to just remove the transformation from the following on line 579 (my version may be out of date).
var geometry = webMercatorUtils.geographicToWebMercator(new Point(longitude, latitude));
so that it just used the raw basemap coordinates (rectangular).
var geometry = new Point(longitude, latitude);

I am trying to get my head around what is expected, and how I can make a more permanent fix. Do I just need to make the changes in the processCVSData() function? Typically, users like to add lists of WGS-84 geographics coordinates from a GPS.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant