Tag Info

New answers tagged

0

Not sure if this (really simple approach) would work, but you might want to try something like propertyLoc: ['location.latitude','location.longitude']


0

Haven't used L.layerJSON before, but looks like it doesn't have a particularly good way to parse incoming JSON data. Because the endpoint your loading your data from is not formatted as geoJSON, you should load it via an ajax call, parse it into geoJSON (shouldn't be that hard, as it's just points), and pass that to L.geojson. (see docs). This is much of ...


0

Thanks everyone, finally i found out that i wouldn´t update the properties of my geojson. Everything is working now!


0

You should import the json module from Dojo. It will allow you to create a JavaScript object from your return JSON and do what you want with it. So, if you want to create a Geometry object, you can parse the returned JSON with the json module, get your JavaScript object, and create it from the properties of the derived JavaScript object. Say your object ...


1

The problem here is that Active Huricanes layer is added as a feature layer rather than a dynamic map service. Difference is that dynamic map service serves rendered images and rendering is done on server so everything is rendered as specified in MXD. However, the feature layer serves the actual geometry (vertices) and symbology used. Rendering is then ...


1

GeoServer supports neither, there is a discussion ongoing on how to implement support for HSTORE here: http://osgeo-org.1560.x6.nabble.com/Re-Geoserver-Question-about-PostgreSQL-and-JSON-or-HStore-td5218145.html Supporting JSON columns would be quite a bit more complicated.


0

First to first. Except you "must" use GeoJson, use it. Otherwise, convert it to TopoJson. Use http://geojson.io its simple, clean, free and its works. Open -> File: load your "mylayer.geojson" (Check if everything it's ok with your map) Save -> TopoJson: map.topojson GeoJson Size: 1.08 Mb TopoJson Size: 0.16 Mb And here a working code from your data: ...



Top 50 recent answers are included