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

Scale bar in print preview #70

Open
jonathan-wcc opened this issue Jun 3, 2013 · 0 comments
Open

Scale bar in print preview #70

jonathan-wcc opened this issue Jun 3, 2013 · 0 comments

Comments

@jonathan-wcc
Copy link

(bug?)
I think this is a GeoExt issue but may be wrong (feel free to close it).
See this issue - http://code.google.com/p/geoext-viewer/issues/detail?id=167

The print preview scale bar doesn't use the projection that's been declared elsewhere. Other scale bars are all fine (the main map one and the MapFish printed output).

To work around it I have to explicitly declare the proj4js EPSG:

Proj4js.defs["EPSG:27700"] = "+proj=tmerc +lat_0=49 +lon_0=-2 +k=0.9996012717 +x_0=400000 +y_0=-100000 +ellps=airy +datum=OSGB36 +units=m +no_defs ";
EPSG27700 = new OpenLayers.Projection( "EPSG:27700" );

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