[GraphHopper] How to modify alt of vehicle type on the front end

高安琪 anqigao566 at gmail.com
Tue Mar 10 10:32:21 UTC 2015


Hi Peter,

It works!!! Thanks a lot. :p

Regards,
Anqi


2015-03-10 7:58 GMT+00:00 Peter <graphhopper at gmx.de>:

>  Did you recompile? E.g.
> ./graphhopper.sh clean
> ./graphhopper.sh web your.osm.pbf
>
>
> Regards,
> Peter
>
>
> On 09.03.2015 23:20, 高安琪 wrote:
>
>  Hi,
>
>  I add a new vehicle type -- lorry.
>
>  I find it shows alt="web.lorry" on the front end as follow.
> <img src="img/lorry.png" alt="web.lorry">
>
>  What I expected is alt="Lorry". So I look through main.js and find it
> uses a TranslationMap to convert some information. Then I change the
> file en_US.txt. (I think it may be a TranslationMap?)
>
>  In the file:
> web.car=Car
>  web.foot=Foot
>
>  So I add lorry to this file in the same format.
> web.lorry=Lorry
>
>  But it still doesn't work. (It still shows web.lorry on the front end)
>
>  Could you please give me some suggestions?
>
>  With many thanks,
> Anqi
>
>
>
> _______________________________________________
> GraphHopper mailing listGraphHopper at openstreetmap.orghttps://lists.openstreetmap.org/listinfo/graphhopper
>
>
>
> _______________________________________________
> GraphHopper mailing list
> GraphHopper at openstreetmap.org
> https://lists.openstreetmap.org/listinfo/graphhopper
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/graphhopper/attachments/20150310/157523d1/attachment.html>


More information about the GraphHopper mailing list