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

高安琪 anqigao566 at gmail.com
Mon Mar 9 22:20:16 UTC 2015


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/graphhopper/attachments/20150309/64aa83e9/attachment.html>


More information about the GraphHopper mailing list