Advertisement
Guest User

Untitled

a guest
Jun 20th, 2019
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. chart.title(datapogi);//but this line appeared instantly on the graph
  2. chart.container("container").draw(chart);
  3. while (Math.abs(e.lngLat.lng - coordinates[0]) > 180) { coordinates[0] += e.lngLat.lng > coordinates[0] ? 360 : -360; }
  4. new mapboxgl.Popup() .setLngLat(coordinates) .setHTML('<strong>'+description+'</strong><br />'+inpormasyon)
  5.  
  6. // Change the cursor to a pointer when the mouse is over the places layer. map.on('mouseenter', 'places', function () {
  7.  
  8. map.on('click', 'off-leash-areas', function (e) {
  9. var coordinates = e.features[0].geometry.coordinates.slice(); var description = e.features[0].properties.compname; var
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement