Apr 7
Working on adding features. The site is
Some email back-and-forth Anna-Jim this week.
Label sources:
Rather than attaching the label to a polygon (as shown in the sources above) I am attempting to loop through building_labels and place a marker at each coordinate pair (this part is working). Then, I am trying to place a label at each marker - I will decrease the marker transparency once this works so as the label is the only thing visible.
Zoom Source:
This first link is the leaflet API - there is a 'zoomend' and a 'zoomstart' event. I want to use the 'zoomend' so that when the user finishes zooming the zoom level is obtained and something happens. The second and third links are examples of this. I am trying to use this for two things. First, to make the labels visible only at zoom 18 and second, to make the width of the trail change as the user zooms in.
- stackoverflow.com/questions/27820338/leaflet-how-do-i-show-a-label-beyond-a-certain-zoom-level