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

Peter graphhopper at gmx.de
Tue Mar 10 07:58:59 UTC 2015


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 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/357d1dad/attachment.html>


More information about the GraphHopper mailing list