Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
GeoJSON is a geospatial data interchange format based on JavaScript Object Notation (JSON)
1
vote
Leaflet and census block data: not displaying
Your code looks OK but you should load the base map layer before the geojson layer. … L.tileLayer('http://{s}.tile.osm.org/{z}/{x}/{y}.png', {
attribution: '© <a href="http://osm.org/copyright">OpenStreetMap</a> contributors'
}).addTo(map);
//then load geojson layer
L.geoJson …
1
vote
Accepted
Have to click twice to open popup leaflet
I don't think you will need to call the highlightSelection function, try to update the onEachFeature function to something like the one below to append content to popup window for each layer:
// Acti …
3
votes
Accepted
Adding Properties to GeoJSON File
I would download and install QGIS, and then open the geojson file by clicking Add vector layer button:
After that you should be able to see you geojson file in QGIS:
And right click the layer's name … And make sure you specify the output format as "GeoJSON":
Hope this helps, thanks. …
1
vote
Certain polygons not obeying JavaScript style rules?
It appears there is a bug in your JavaScript code where you switch the style, you put 0 for the opacity for polygons have ownership type as "Private", and you will need to change it to 0.5 to get it f …
1
vote
Accepted
How to add remote GeoJSON data to a Leaflet map as a new layer?
Leaflet expects GeoJSON objects to be in EPSG:4326 (WGS 84) and the entire API uses 4326 so you should try to reproject your layer on the server side first before render them on the map. … Try to use this url below for unitsurl variable, I added the SRSname parameter at the end to specify that EPSG:4326 is the spatial reference system wanted for the output geojson layer. …
1
vote
Accepted
Displaying properties from GeoJSON file in choropleth map using Leaflet.js?
I checked your code and it appears all you did in your ajax success callback function is adding the features to the GeoJson Layer you created without calling the style function. …
2
votes
2
answers
1k
views
Issue with using TopoJSON server API to return TopoJSON object with properties
I am creating a node application and using TopoJSON server API reference (see the link below) to convert a GeoJSON object to a TopoJSON object. … TopoJSON server API reference
I used these three lines of code below which returns the TopoJSON topology but without returning the properties from the GeoJSON object. …