leaflet

What is keeping jQuery.print from working with Leaflet?

余生长醉 提交于 2020-03-05 07:07:12
问题 When testing a git repo that makes use of jQuery.print (demo here), I got the following error: [Exception... "The operation is insecure." code: "18" nsresult: "0x80530012 (SecurityError)" location: "<unknown>"] I tested this on a local Leaflet instance with jQuery.print by pasting the following into the console, and was able to replicate it: $.print("map" /*, options*/); [Exception... "The operation is insecure." code: "18" nsresult: "0x80530012 (SecurityError)" location: "<unknown>"] "Failed

What is keeping jQuery.print from working with Leaflet?

£可爱£侵袭症+ 提交于 2020-03-05 07:05:51
问题 When testing a git repo that makes use of jQuery.print (demo here), I got the following error: [Exception... "The operation is insecure." code: "18" nsresult: "0x80530012 (SecurityError)" location: "<unknown>"] I tested this on a local Leaflet instance with jQuery.print by pasting the following into the console, and was able to replicate it: $.print("map" /*, options*/); [Exception... "The operation is insecure." code: "18" nsresult: "0x80530012 (SecurityError)" location: "<unknown>"] "Failed

How to open a cluster from event in leaflet to bounce marker?

ε祈祈猫儿з 提交于 2020-03-05 06:08:13
问题 I have problem with bounce marker. When marker is a single marker, everything is ok. But markers in cluster, how i Can open this cluster, and show selected marker? I used options disableClusteringAtZoom: but this options declustering markers, when one marker bounce, other markers are visible. I used plugin markerClusterGroup for leaflet and smoothMarkerBouncing private drawSelectedElement(animate: boolean): void { _.forEach(this.selectedMarkers, (selectedMarker: OpMarker) => { if

leaflet concentric circles (angular 2)

喜欢而已 提交于 2020-03-05 04:08:06
问题 i need to draw to map 5 concentric circles, like a donut, with event handler on "mouseover" each polygon. i can't do it by circle() method, so i think do it by GeoJSON how can i do it? i have this, but this doesn't work try to learn this method to further implement let mp = { "type": "Feature", "geometry": { "type": "Point", "coordinates": [ [ [ [43.30467224121094, 56.696589064251185], ], ] ] }, "properties": { 'radius': 10000, 'style': { color: "black", opacity: 1, fillColor: "red",

trying to use EPSG:3857 in Leaflet

帅比萌擦擦* 提交于 2020-03-05 03:24:46
问题 I am trying to make leaflet use EPSG:3857 as an input coordinate system. I use porj4leaflet to achieve this. I have defined my map instance like this: var map = L.map('map', { center: [8378860.13, 1481133.311008498], zoom: 7, crs: new L.Proj.CRS( 'EPSG:3857', '+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs', { resolutions: [ 8192, 4096, 2048, 1024, 512, 256, 128 ], origin: [0, 0] } ) }); When I try to run this, i get

Shiny leaflet add large amount of separated polylines

允我心安 提交于 2020-03-04 04:51:01
问题 I have a 200k lines dataset containing coordonates of departures and destinations. I have a R shiny app with a leaflet map to show circles on these coordonates, which works very well despite the large amount of coordonates. Here is a simplified example of the data. Each line contains the travel id, latitude and longitude of the departure, latitude and longitude of the destination. id lat_begin lat_end lng_begin lng_end 1 1 46.49 46.27 2.65 7.66 2 2 45.94 49.24 7.94 0.76 3 3 48.07 49.50 2.05 2

Shiny leaflet add large amount of separated polylines

狂风中的少年 提交于 2020-03-04 04:50:11
问题 I have a 200k lines dataset containing coordonates of departures and destinations. I have a R shiny app with a leaflet map to show circles on these coordonates, which works very well despite the large amount of coordonates. Here is a simplified example of the data. Each line contains the travel id, latitude and longitude of the departure, latitude and longitude of the destination. id lat_begin lat_end lng_begin lng_end 1 1 46.49 46.27 2.65 7.66 2 2 45.94 49.24 7.94 0.76 3 3 48.07 49.50 2.05 2

Overlay image on R leaflet map

帅比萌擦擦* 提交于 2020-02-26 10:16:51
问题 I have a .PNG image which fundamentally represents is raster, but is not in a raster format. These are provide to me, otherwise I would generate them as rasters myself and avoid this problem. I would like to overlay the image on a leaflet basemap in R. The image overlay will just provide a reference for the user to draw a bounding box around a region, and query a database for the raw data that generated the raster in that region. In Python's implementation of leaflet the image overlay is

Overlay image on R leaflet map

对着背影说爱祢 提交于 2020-02-26 10:16:26
问题 I have a .PNG image which fundamentally represents is raster, but is not in a raster format. These are provide to me, otherwise I would generate them as rasters myself and avoid this problem. I would like to overlay the image on a leaflet basemap in R. The image overlay will just provide a reference for the user to draw a bounding box around a region, and query a database for the raw data that generated the raster in that region. In Python's implementation of leaflet the image overlay is

Node.js Leaflet error

非 Y 不嫁゛ 提交于 2020-02-25 13:35:48
问题 Please help!! I know I'm missing something very simple but I'm new to all this and I read lots of different post and tutorial and can't get whats wrong. I initiate a new project on Ubuntu 14.04 Navigate to the folder I want my app to be. This is the steps I take: sudo apt-get install nodejs-legacy sudo npm install express-generator -g (framework) express -e --ejs (Establece el lenguaje ejs como base) https://www.npmjs.com/package/ejs npm install To run the app DEBUG=myapp:* npm start Then