9

I have no idea what the error means, but you can make a circle and a semicircle, then, combine them in a featureGroup. var map = L.map('map').setView([39, 30], 7); L.tileLayer('https://api.mapbox.com/styles/v1/{id}/tiles/{z}/{x}/{y}?access_token=pk.eyJ1IjoibWFwYm94IiwiYSI6ImNpejY4NXVycTA2emYycXBndHRqcmZ3N3gifQ.rJcFIG214AriISLbB6B5aw', { maxZoom: 18, ...


6

You missed innerHTML in else, and you should change + stream to + innerHTML in setContent. Use this: onEachFeature: function (pointFeature, layer) { var stream = pointFeature.properties.Stream; var innerHTML; if (stream == 1) {innerHTML = "<p class='webcam_refresh'> Live Stream </p>";} else { innerHTML = "<p ...


2

Use try/catch if you are using async/awaits. I think that @arcgis/core/rest/geoprocessor could use some (more) examples. Hope that this helps someone else. import JobInfo from "@arcgis/core/rest/support/JobInfo"; import ParameterValue from "@arcgis/core/rest/support/ParameterValue"; import GPMessage from "@arcgis/core/rest/support/...


2

You need to store the current zoom level when zoomed to a state using stateZoomLevel = map.getBoundsZoom(e.target.getBounds());. Then you need an event listener on zoomend and check if the stored zoom level is bigger than the current one. If so you need to hide the counties and show the states. Here is a sample using your code. I have used fetch to query the ...


2

I agree with @Kadir's comment. It's the line: webcam = L.geoJSON(eurocam).addTo(map); Without explicit icon definition this will produce the default point icon (blue pointer) mentioned in the icon section of Leaflet documentation.


2

You can get coordinates from feature geometry with the .getCoordinates() method, and you can get feature geometry from feature with the .getGeometry() method. To get all arrays of coordinates to a global variable allCoords, you just have to add some code to dragAndDropInteraction.on event processing function. Relevant part of the code could look something ...


1

What you're doing is pretty crude, but without too much focus on all the things that can go wrong and the many ways one could do this better, try changing; "<h2 style = 'color: props.elecVaxData_voteColor;'>" to "<h2 style = 'color: "+props.elecVaxData_voteColor+";'>" to make your property statement part of the JS ...


Only top voted, non community-wiki answers of a minimum length are eligible