[Mapbender-users] print scale bar - units in miles ?

karsten karsten at terragis.net
Tue Jul 7 16:21:01 PDT 2020


Thanks Astrid for the link to that code
I did get it working putting in a fast hack (calculation from meter to
miles)
 ;)

Cheers
Karsten

-----Original Message-----
From: Astrid Emde (WhereGroup) [mailto:astrid.emde at wheregroup.com] 
Sent: Tuesday, July 07, 2020 00:35
To: Mapbender User List
Cc: karsten
Subject: Re: [Mapbender-users] print scale bar - units in miles ?

Hello karsten,

this is not configurable.

Looks like yOu have to modify the code.

Check src/Mapbender/PrintBundle/Component/PrintService.php

https://github.com/mapbender/mapbender/blob/f30231bbb2a3b1f58ba6d6636e11633b
1893cafc/src/Mapbender/PrintBundle/Component/PrintService.php#L554

Astrid

Am 2020-07-07 08:43, schrieb karsten:
> Hi all,
> 
> I am trying to set the print PDF output units for a MapBender template 
> scale bars to show miles instead of km.
> On the live map I got that configured.
> Can I specify  that in the print cling config (via yaml ?) I tried
> 
> scale_bar:
>   units:
>     - ml
> 
> but did not get that to work so far
> Any hints ?
> 
> Cheers
> Karsten
> 
> Karsten Vennemann
> Terra GIS LTD
> _______________________________________________
> Mapbender_users mailing list
> Mapbender_users at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/mapbender_users

--
Mit freundlichen Grüßen

Astrid Emde
GIS-Consultant

  -----------------------------------
  Aufwind durch Wissen!
  Jetzt neu: Webinare und Online-Schulungen
  bei der www.foss-academy.com
  -----------------------------------

   Astrid Emde
   WhereGroup GmbH
   Eifelstraße 7
   53119 Bonn
   Germany

   Fon: +49(0)228 90 90 38 - 22
   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

Geschäftsführer:
Olaf Knopp, Peter Stamm
Amtsgericht Bonn, HRB 9885
-------------------------------




More information about the Mapbender_users mailing list