openstreetmap - Street coloring in a map -
I have a database of a city, which is in the name of the road and the average density of a number (1 to 5) Represents people
I show it on the map (it does not matter if Google Maps or OSM or whatever), where I give the green color to the green color based on density.
Any thoughts?
TY!
If you are using Google Maps APIv3, making / displaying lines on the map is not a difficult task. The Gmaps3 documentation explicitly explains using it -
The argument passes through your road coordinates (an array) which is used to draw a line on the map can go. Apart from this, you can easily change the colors of polylines, for an idea how to accomplish this, you can create an array with some set of colors - And then depending on the density values, it is advisable to take color from the array while creating polyline Update: To find the road coordinates , The instruction service can be desired to you. You can pass the address or the location as the original and destination to You can view and store the coordinates you received using the Chrome Console-Network tab (you will download JS files with the coordinators). directionsService.route () and Trafford driving. You get the road-
Comments
Post a Comment