View MapExample.js
import React, { useEffect } from "react"; | |
import { Map, GeoJSON, TileLayer } from "react-leaflet"; | |
import leafletStream from "leaflet-geojson-stream"; | |
function StreamGeoJsonLayer(props) { | |
const layerRef = React.useRef(); | |
const { url } = props; | |
useEffect(() => { | |
const gj = layerRef.current.leafletElement; | |
leafletStream.ajax(url, gj).on("end", function () { |
View data.json
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View bigcity_red.png
bigcity_red.png |
View bigcity_green.png
bigcity_green.png |
View data.json
[ | |
{ | |
"id": 1, | |
"name": "Oslo", | |
"location": { "lat": 59.923043, "lng": 10.752839 } | |
}, | |
{ | |
"id": 2, | |
"name": "Stockholm", | |
"location": { "lat": 59.339025, "lng": 18.065818 } |
View us-states.json
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View data.geojson
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View FileUploader.cs
using System; | |
using System.Net; | |
using Newtonsoft.Json.Linq; | |
namespace SharePoint.FileOperations | |
{ | |
class FileUploader | |
{ | |
public static void ChunkedFileUpload(string webUrl, ICredentials credentials, string sourcePath, string targetFolderUrl, int chunkSizeBytes, Action<long, long> chunkUploaded) | |
{ |
View MarkerClusterer.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
NewerOlder