Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move mercator transforms to Projection.js. #153

Merged
merged 6 commits into from
Jan 17, 2012
Merged

Conversation

tschaub
Copy link
Member

@tschaub tschaub commented Jan 17, 2012

The SphericalMercator mixin is not required for coordinate transforms. Default transforms included whenever Projection.js is included.

The SphericalMercator mixin is not required for coordinate transforms.  Default transforms included whenever Projection.js is included.
@elemoine
Copy link
Member

Awesome. We may just want something in the release notes for this change. Thank you for making this real. Please merge.

@probins
Copy link
Contributor

probins commented Jan 17, 2012

Wow! Fast work!

We can also remove the SphericalMercator dependency that @elemoine has just added to Layer/OSM :-)

One small api change from removing SphericalMercator from Bing that has just occurred to me is that forwardMercator() and inverseMercator() are api methods, so it's possible (though probably not very likely) that people were using them (with OpenLayers.Layer.SphericalMercator.forwardMercator(...)). This will no longer work if SphericalMercator isn't present. So, yes, I agree that something to this effect should be in the release notes.

Projection.js gets pulled in as a transitive dependency of all layers.
The default transforms (b/w EPSG:4326 & EPSG:900913) now come with any layer type.
This adds documentation for projection methods and includes detail in the release notes about build configuration related changes.
tschaub added a commit that referenced this pull request Jan 17, 2012
Move mercator transforms to Projection.js.
@tschaub tschaub merged commit 974ed29 into openlayers:master Jan 17, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants