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

Bounds on the Map: zoom to + highlight the area of transformation #3

Closed
klokan opened this issue Jan 15, 2014 · 5 comments
Closed

Bounds on the Map: zoom to + highlight the area of transformation #3

klokan opened this issue Jan 15, 2014 · 5 comments
Milestone

Comments

@klokan
Copy link
Member

klokan commented Jan 15, 2014

The Map page (e.g. /4326/coordinates) should display bounds of transformation - and zoom the these by default. (now the zoom is fixed :-().

The bounds should be passed instead of the center lon/lat from the HTML to JavaScript.

For displaying the bounds on the map we may use the trick similar to http://www.kartenportal.ch/kartensammlungen/ - as it is described at:

http://stackoverflow.com/questions/2956355/highlight-polygon-and-tint-rest-of-map-using-google-maps

@klokan
Copy link
Member Author

klokan commented Jan 15, 2014

Related to #4 - the list of transformations and their bounds may be passed into JavaScript - instead of only single bounds.

@tormi
Copy link

tormi commented Jan 23, 2014

Bounds (both WGS 84 and projected) should also be available as text output.

@klokan
Copy link
Member Author

klokan commented Jan 23, 2014

@tormi Please create a new ticket for this idea - with more details about what you have in mind. I am not sure if what you want is directly related to this ticket.

I expect you have in mind an interface similar to: http://boundingbox.klokantech.com/. Correct?

It may be challenging for non-WGS84 - in some projections the border lines may be curved, and the rectangle degraded to general polygon. It would be doable only with Proj4js and only for subset of coordinate systems.

Note: The transformations and coordinate systems in EPSG database have only link to an Area. Area has a universal bounds only in WGS84. There is no record for projected bounds of a coordinate system in the official database - we would need to handle it with our own external database - if you want bounds such as these used for generating tile pyramids in WMTS for given coordinate system.

BTW feel free to contribute with a pull request - EPSG.io is an open source project.

@tormi
Copy link

tormi commented Jan 23, 2014

Please create a new ticket for this idea

Ok

I expect you have in mind an interface similar to: http://boundingbox.klokantech.com/. Correct?

Correct, I meant bounding box coordinates as in http://spatialreference.org/ref/epsg/4326/

Tormi

@tormi
Copy link

tormi commented Jan 29, 2014

Wow, already implemented :) Thanks!

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

No branches or pull requests

2 participants