Hello. I started using Graphhopper Maps. I need to change start zoom and centering map. Is there any way to do that?
thanks in advance!!
Cheers
Hello. I started using Graphhopper Maps. I need to change start zoom and centering map. Is there any way to do that?
thanks in advance!!
Cheers
The code is here: https://github.com/graphhopper/graphhopper-maps/blob/b57a2844e643fc03a28f9a148b3b2f5b599cf14c/src/map/map.ts#L16-L17
thanks!!!
could you tell me, can i do that thing using graphhopper web?
The easiest you can do is run the maps app separately and point it to a GraphHopper server: GitHub - graphhopper/graphhopper-maps: GraphHopper Maps - Open Source Route Planner UI
Then your changes in the maps code will become visible.
I dont know. Changes on this lines https://github.com/graphhopper/graphhopper-maps/blob/b57a2844e643fc03a28f9a148b3b2f5b599cf14c/src/map/map.ts#L16-L17 not help me. I using custom pbf map. What should i do for that?
You need to:
Maybe I didn’t explain what I need correctly. I need to set the default scale and location of the map
You can change the scale and the location with the lines of code I linked above.