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

WebMapJS ignores defaultProjection from config file #35

Open
jpulles opened this issue Dec 9, 2018 · 0 comments
Open

WebMapJS ignores defaultProjection from config file #35

jpulles opened this issue Dec 9, 2018 · 0 comments

Comments

@jpulles
Copy link

jpulles commented Dec 9, 2018

File WMJSMap.js uses fixed values for setting initial srs and bounding box, where it could have used the values for the default Projection in the config file.

WMJSMap.js, lines starting at 694:

    this.bbox.left = -180;
    this.bbox.bottom = -90;
    this.bbox.right = 180;
    this.bbox.top = 90;
    this.srs = 'EPSG:4326';

These values could be taken from a configured defaultProjection:

var defaultProjection = {
	bbox: '-5000,300000,300000,630000', 
	srs: 'EPSG:28992'
};
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

No branches or pull requests

1 participant