[Mapbender-users] Mapbender3 define OpenLayers ratio to reduce the size of the map
Astrid Emde
astrid.emde at wheregroup.com
Mon Jun 23 03:43:00 PDT 2014
Hello,
there is a ticket at github about OpenLayers ratio. It can help yyou to
produce small MapRequests
https://github.com/mapbender/mapbender/issues/161
In the next version you will be able to define ratio in the configuration.
If you want to use it already follow the instruction:
In the Twig-file (Applicatioin-template), f.e
MapbenderCoreBundle:Template:fullscreen.html.twig add after the loading of the JS-Assets the following line to set ratio to 1:
<script type="text/javascript" src="{{
path('mapbender_core_application_assets', {'slug': application.slug,
'type': 'js'}) }}"></script>
<script>OpenLayers.Layer.Grid.prototype.ratio = 1.0;</script>
--
Best regards
Astrid Emde
GIS-Consultant
--------------------------------------------
Treffen Sie die WhereGroup auf der AGIT 2014
2.-4. Juli 2014 in Salzburg | www.agit.at
--------------------------------------------
Astrid Emde
WhereGroup GmbH & Co.KG
Eifelstraße 7
53119 Bonn
Germany
Fon: +49(0)228 90 90 38 - 19
Fax: +49(0)228 90 90 38 - 11
astrid.emde at wheregroup.com
www.wheregroup.com
Folgen Sie der WhereGroup auf twitter: http://twitter.com/WhereGroup_com
Amtsgericht Bonn, HRA 6788
-------------------------------
Komplementärin:
WhereGroup Verwaltungs GmbH
vertreten durch:
Olaf Knopp, Peter Stamm
-------------------------------
pgp-public key:
http://pgp.mit.edu:11371/pks/lookup?search=0x06DA52D72D515284
Signierte und/oder verschlüsselte Nachrichten sind sehr willkommen
Signed and/or encrypted mail is highly appreciated
More information about the Mapbender_users
mailing list