Feature Server supported? or just a bug?
hoogw opened this issue · 1 comments
hoogw commented
How often can you reproduce it?
- [x ] Always
- Sometimes
- Rarely
- Unable
- I didn’t try
Description:
error when use type: feature for the feature server.
Uncaught TypeError: Cannot read property 'policeStation' of undefined
....
Uncaught TypeError: Cannot read property 'search' of undefined
......
`
mapOptions: {
basemap: 'streets',
center: [-118.142841, 34.145795],
zoom: 12,
sliderStyle: 'small'
},
operationalLayers:
[
{
//type: 'dynamic',
type: 'feature',
//url: 'https://services2.arcgis.com/zNjnZafDYCAJAbN0/ArcGIS/rest/services',
url:
'https://services2.arcgis.com/zNjnZafDYCAJAbN0/ArcGIS/rest/services/Zoning/FeatureServer/0',
title: 'test ',
`
Steps to reproduce:
- Include a JS Bin (or equivalent) link if possible. You can use this as a starting point. Alternatively create a Gist
- Detail the exact steps taken to produce the problem
- Include a gif if possible; you can use LICEcap to make a gif: http://www.cockos.com/licecap/
- Check the browser console for errors (Use F12 to access the console)
Expected results:
Actual results:
Environment:
Software | Version |
---|---|
CMV Version | |
Browser | |
Operating system |
hoogw commented
I fixed the problem. thanks