Comments (3)
Sounds good. I would just fire the baseclass event here:
_addGraphics: function (arcgisJson) {
var i,
feature,
graphic;
// Limit size of data that can be drawn
if (arcgisJson.length > this._maxDraw) {
this._drawCountTotal = this._maxDraw;
console.warn("GeoJsonLayer Warning: Large dataset detected. Only drawing the first " + this._maxDraw + " features!");
} else {
this._drawCountTotal = arcgisJson.length;
}
// Add graphics to the layer with symbols, project if needed
for (i = 0; i < this._drawCountTotal; i++) {
feature = arcgisJson[i];
// Create graphic - magically sets the geometry type!
graphic = this._createGraphic(feature);
// Add to layer
this._addGraphicToLayer(graphic);
}
}
from geojson-layer-js.
Implemented in #31.
from geojson-layer-js.
Thanks @alaframboise
from geojson-layer-js.
Related Issues (16)
- Does not expose setRenderer method HOT 3
- GeoJsonLayer not defined HOT 13
- ClassBreaksRenderer is not supported HOT 1
- Showing a single Feature HOT 2
- How to import a Projected Coordinate GeoJson
- Require is not defined
- Compatibility with API 4.3 HOT 4
- Issues on Running the Plugin With ArcGIS JavaScript API 3.21
- How to require geojsonlayer.js in a webpack app
- Features displayed limited to 1000?
- Point to 4.x GeoJSON Layer in README HOT 1
- [Deprecation] Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience.
- No labels display in simple renderer
- An obvious example missing: how to show a geojson from a geojson (not file, not url, not feature collection)
- How can I set symbol color by diferent value?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from geojson-layer-js.