Tag Info

Hot answers tagged

3

To display that many polygons, you'll almost certainly need to use a tiled layer, rather than streaming the vectors to the client. You've tagged this with ArcGIS, so you could use ArcGIS for Server or ArcGIS.com to generate a tiled layer, which could be shown in the ArcGIS JavaScript API. You can display this tiled layer with the OpenStreetMap basemap ...


1

You don't have to specify a built-in basemap. Add your custom basemap as a layer like so. var map; require(["esri/map", "esri/layers/ArcGISTiledMapServiceLayer", "dojo/domReady!"], function (Map, ArcGISTiledMapServiceLayer ) { map = new Map("map", { center: [-76.756, 40.241], zoom: 8 }); var ...


1

For a one-time conversion I would have used the accepted answer from @Sasa Ivetic but needed something real-time, and Terraformer worked decently for that. Unfortunately it's only for single features by default, so for multiple features you need to loop through the array and add an ID to each feature: var FeatureCollection = { type: "FeatureCollection", ...



Only top voted, non community-wiki answers of a minimum length are eligible