Hello
I feel like this may be a silly question, but how do I convert a lat long to X,Y to display on a map?
Convert Lat Long to X Y
Hi Sanjeev,
Generally x equal longitude and y equal latitude in coordinate system.
Regards,
Don
Thanks, I got it to work… Turns out I also need to specify a projection when I’m drawing dots.
var proj4 =
new
Proj4Projection();
proj4.InternalProjectionParametersString = Proj4Projection.GetEpsgParametersString(4326);
proj4.ExternalProjectionParametersString = Proj4Projection.GetGoogleMapParametersString();
pointLayer.FeatureSource.Projection = proj4;
Hi Sanjeev,
If you choose Google map as your base map and your pointLayer is based on 4326, that’s right you need to specified the projection, that will help you convert all 4326 points under 900913, then it can render on correct position.
Regards,
Don
What if I’m using the OSM (From the OSM World Map Kit SDK)?
Hi Sanjeev,
For OpenSteertMapOverlay, by default the unit is meter and the projection should be also 900913.
Regards,
Don