geojson

Google Maps V3 -> Is it possible to get properties from Geojson using lat lng coordinates or other information from search box?

﹥>﹥吖頭↗ 提交于 2019-12-24 12:04:24
问题 I'm using an external geojson-file to add layers to my Google Map. This file contains two properties per area that I would like to access when searching. I can easily fetch the properties if the user clicks on an area or uses any of the other supported event handlers. https://developers.google.com/maps/documentation/javascript/datalayer#add_event_handlers this.map.data.addListener('mouseover', (event) => { console.log(event.feature.getProperty('VD')); }); However I would like to get what

How to render geojson with three.js and d3.js

瘦欲@ 提交于 2019-12-24 12:02:49
问题 I use three.js r49, d3.v2.js and d3-threeD.js i want to render my city(Mashhad) with three.js but i got a problem i can render europian countries with these codes but i cant render with existing json file. d3.js Ref d3-threeD.js Ref these are my codes: <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title>GEO Bar</title> <link rel="stylesheet" href=""> <script type="text/javascript" src="./scripts/jquery-1.7.2.js"></script> <script

Using GeoJson data format how can we write dynamic query for “properties dictionary fields ”?

╄→гoц情女王★ 提交于 2019-12-24 10:22:40
问题 I have data in geojson format. Here is my data : { "type" : "FeatureCollection", "features" : [ { "type" : "Feature", "properties" : { "year" : 2015, "season" : "rabbi", "crop" : "banana", "district" : "pune", "taluka" : "haveli", "circle" : "uralikanchan", "farmer" : 100 }, "geometry" : { "type" : "Polygon", "coordinates" : [ [ 74.129992, 18.505494 ], [ 74.129047, 18.505494 ], [ 74.128275, 18.504436 ], [ 74.127588, 18.503052 ], [ 74.114456, 18.498331 ], [ 74.113941, 18.498331 ], [ 74.112482,

D3 transition along segments of path and pause at coordinate values

不想你离开。 提交于 2019-12-24 08:58:58
问题 I would like to be able to click on a circle (coordinate points); bring the marker to the position of the circle and pause at the position of the circle and then resume again along the path. In addition I would like to activate a circle when marker is paused on them - they are clicked (or their Voronoi cell is clicked). My intention is to have an on click function to an href for the circle coordinates eventually. I think I need to pass the index of the path coordinates into the translateAlong

Change opacity using leaflet without plugin

一笑奈何 提交于 2019-12-24 07:49:11
问题 I have a geojson and try change the opacity chaging the button, but it dont work anyway. Where statesData is my geojson.js, style and onEachFeacture are others functions that I have. Here is my button: <span id="image-opacity">0.5</span> <input type="range" id="sldOpacity" min="0" max="1" step="0.1" value="0.5" /> And here is my JS $('#sldOpacity').on('change', function(){ $('#image-opacity').html(this.value); geojson.setOpacity(this.value); }); var geojson = L.geoJson(statesData, { style:

Multiple maps with d3.js: change values of scale and center

一曲冷凌霜 提交于 2019-12-24 07:45:28
问题 I’m building a (d3 v4) cartographic visualization which allows the user to switch between many datasets (json files) and two different regions (administrative units of a country and smaller administrative units into its capital city). Actually the switch from one to another dataset on the initial country level works well, through buttons and jquery. Problem: it’s a bit less convincing when switching to a map/dataset about the capital city, as the projection is initially set for the whole

Shapefile to TopoJSON conversion problems

拜拜、爱过 提交于 2019-12-24 07:18:38
问题 I'm trying to convert a shapefile to GeoJSON and then to TopoJSON as described in Let's Make a Map. Somewhere along the chain, something gets corrupted and my resulting image looks like below: My workflow is as follows: Download shapefile from: http://vcgi.vermont.gov/warehouse/search_tools - I am working with the Master Town Boundary data, specifically, the "Boundary_BNDHASH_region_towns.shp" file. Convert shapefile to GeoJSON ogr2ogr -f GeoJSON vt_towns.json Boundary_BNDHASH_region_towns

Google Maps and GeoJSon: latitude and longitude conversion

自古美人都是妖i 提交于 2019-12-24 07:14:35
问题 I'm using Google Maps API to visualize some label on the map using google.maps.Polygon. I used this converter http://converter.mygeodata.eu/ to convert them in a GeoJSon format, but latitude and longitude coordinates where mistaken. They should be centered in Florence, Italy, but actually i get this: 1680508.8375 4847672.484 I tried tho divide them by 10000 and i got: 16.805088375 48.47672484 wich alow me to show some results, but that was not the results I was looking for (I get them

google maps addGeoJson from text field with js

笑着哭i 提交于 2019-12-24 05:51:46
问题 I am trying to insert an polygon to a google map. The Coordinates for the polygon are in a Textfield value stored like this : {"type":"Polygon","coordinates":[[[9.99893181141,53.7746888818],[9.53475944814,53.5745692488],[9.94125358875,53.3636652005],[10.4136656981,53.5223496849],[10.3285216551,53.7860492252],[10.1966857177,53.7892944727],[9.99893181141,53.7746888818]]]} I know I can load geojson files into the map with map.data.addGeoJson(geoJson); but I am unable to format the value the

How can I create an array of values from a single GeoJSON property? [duplicate]

安稳与你 提交于 2019-12-24 05:42:36
问题 This question already has answers here : How can I access and process nested objects, arrays or JSON? (23 answers) Closed 5 years ago . Note: it's been pointed out that some possible solutions were already proposed here. However, .map is exactly what I was looking for and doesn't appear in that otherwise-comprehensive post. Thomas's answer below covers my use case. Using javascript, how can I make an array of values that represents an arbitrary property value for each feature in a GeoJSON