I'm using leaflet 0.7. I'm wondering what spatial reference system is used when a new marker is created? Also, how does this impact my use of maps? (I'm using leaflet .7 because of dependency requirements from other plugins). I'm using ESRI base map tiles from the esri-leaflet plugin, which I think are EPSG:3857. I have data in a postgis database in EPSG:4269. When I use the latlong from a new marker in leaflet, I get errors when trying to use that to compare it to spatial data in my database - IE find nearest geometries. I keep reading on the internet that leaflet uses 3857. However, when I transform the point from 3857 to 4269, my spatial queries don't work. However, when I do something like this, and assume the point is in 4326 in leaflet and then transform to 4269, it works - ST_Transform(ST_SetSRID(ST_MakePoint(-96.78427, 32.78299),4326),4269)).
Is this the case that a new marker in leaflet has coordinates stored in EPSG:4326?
If I add a map tile layer like ESRI that is EPSG:3857, or some other coordinate system, even though I transform the coordinate clicks from the markers for use in the DB, does this mean that the points don't quite line up as they should on the map?