When using using worldlayer in decimalDegree, and wan't to use googleLayer witch has to be in meters,
what to do ?
MapUnit on map control
You need to project your layer to GoogleProjection.
Layer.projection = new Proj4Projection(
Proj4Projection.GetEpsgParametersString(4326),
Proj4Projection.GetGoogleMapParametersString(),
);
Patrick Thanks for your sharing!
Lars, the solution is exactly what Patrick talked about.
Any more questions feel free to let us know.
Thanks.
Yale
First i would prefer that my mapunit is decimalDegree, But GoogleLayer is an overlay, and have no method/property for changing
its projection.
Im total newbee to the ThinkGeo map control, and all ower data are in decimalDegree, and when using map unit in meteres all
coodinates comes back in meters, then i have to convert back to decimalDegree. Is there an simple approsh to this conversion?
When i use the above projection on my layers, the map control reises exception when zooming…
/Lars
Lars,
As you know, if you select Google layer as base layer in your application, it is probably you have to convert your data into Google projection, because there is no way to convert Google map back to Decimal degrees.
There are two other posts related contains some samples using the Google Layer as its map. You can have a look if you are interested.
gis.thinkgeo.com/Support/Dis...fault.aspx
gis.thinkgeo.com/Support/Dis...fault.aspx
Any more questions please feel free to let me know.
Thanks.
Yale