Coder Social home page Coder Social logo

esri / information-lookup Goto Github PK

View Code? Open in Web Editor NEW
6.0 23.0 25.0 741 KB

Web app template that is used to determine if the location specified intersects a polygon

License: Apache License 2.0

JavaScript 90.85% CSS 6.93% HTML 2.22%
web-development publishing-sharing javascript webapp configurable-apps

information-lookup's Issues

Error "layer.layerObject is undefined"

I'm getting a "layer.layerObject is undefined" error when launching the map on FF 31 through both Esri's hosted application and when I setup the map to be hosted locally on my webserver. Chrome 36 throws a "Cannot read property 'layerInfos' of undefined".

Here's the map:
http://bit.ly/1o7qOLI

Here's the ESRI hosted webapplication with the error:
http://kingcounty.maps.arcgis.com/apps/InformationLookup/index.html?appid=400507e78aab484dbaa83b07a83afdb5

Having trouble tracking down the cause.

Enhancement Request - return additional information in 'outside service area popup'

The current app only reports outside service area if no features are returned.

I'm using multiple feature layers to display in the standard app popup, I need the service area to report additional information from a standard popup even if the feature is outside the service area.

For example, I need parcel information AND floodplain information to appear in the popup when intersect = true. I need just the parcel information presented if intersect = false.

Custom Geocoder

I tried setting the default geocoder to something other than ESRI's World Geocoder and it doesnt seem to stick and reverts back to it. Is there another location where it needs to be set besides the commonconfig.js?

geocode: [{
url: location.protocol + "//utility.arcgis.com/usrsvcs/servers/a88702314a8a48cb84d0a6305f1adcb6/rest/services/locators/RLIS_Locator/GeocodeServer"
}]

Side panel popup width

I'm trying to configure the popup width when configured to open in the side panel. Having a little trouble identifying the correct location to configure.

Enhancement Request - Add other geometry types to intersect workflow

As a citizen, I need to search for my parcel (or a parcel that I’m thinking about purchasing) by address or parcel number and select it on the map. From that selected parcel, I need to find out if it is in the floodplain (intersected feature).

  • Current “point” based location not sufficient for reporting – I would think for a very large - maybe not (+- 10 AC) parcel it may also not have utility service where the address lookup is going?
  • The improved structure may be out of the floodplain but the parcel inside (future improvements)

Screenshot – these parcels are technically in the floodplain but the address search reports them “not” in the floodplain.

flood

Portal storage layer

Unable to select a point layer in the web map. Had a point layer in map Was using Portal 10.3.

image

Popup URL Links not formatting correctly

I'm having a problem getting links I have configured on my map to show properly when used in the template. Everything else works great. I tried several and no luck. See image below.
image

Here is a link to the map I am using for popups, maybe it has something to do with the way I configured them?:
http://arcg.is/1PhUvW9

When side panel option is on, map result shifts

If using side panel, the map shifts right of centre on the web app when embedded, on the first search result. Subsequent search results are OK. But because the side panel activates it pushes the web map to the right.
image

image

Crashes on mobile

Chrome and Safari crashes on a mobile device when trying to query a location.

Expose a geocoding match threshold or match level in configuration

Instead of having the app jump to the next valid level of geometry when the user enters an invalid address, we've had one customer who would instead like to have the app provide some sort of prompt or warning if either incomplete address information is entered or if an address is not resolved. This prompt would be displayed if the entered address does not meet a configurable match threshold.

Share link button opens the app in a new tab

I'm using this template through AGOL (created a web map and shared it using the Information Lookup template). The link button at the bottom of the docked pop-up does not offer sharing options. Clicking it results in the same web app opening in a new tab.

Couldn't add another geocoder/locator to this template

Hi,
I was working with one of the user's and I could not get this to work using a custom Geocoder URL. I have downloaded this template and hosted it on my server.

I tried adding my own url under DEFAULT.JS FILE. --> HELPERSERVICES --> GEOCODE.url but this doesn't seem to work.

I also tried replacing world geocode url from commonConfig.js file but no luck over there.
When I debugged in search.js file it only adds World Geocoder to the Search sources. Do I need to change anything else anywhere? I do not want to use search widget directly on my layer.

Would you be able to test this when you get a chance?

Thanks,
Akshay
Esri Technical Support

Update config panel to use the new multilayer picker

Example Structure
{
"type":"multilayerandfieldselector",
"fieldOptions":{
"supportedTypes": [
"esriFieldTypeString"
]
},
"layerOptions":{
"supportedTypes":[
“FeatureLayer”
],
"geometryTypes": ["esriGeometryPoint", "esriGeometryLine"],
},
"fieldName":"searchLayer",
"label":"Select search layer"
},

Error on first search - subsequent searches fine

I have found that if a layer with thousands of small polys is used as a lookup layer then on some browsers or slower internet connections, the first search will produce the error message about the search being out of bounds or something. This is simply because the search was fast and tried to return data before the lookup layer could load. It would be nice if the app could wait until all layers have loaded before trying to produce data in the side panel.

combinedPopups.js not working properly when search by a polygon feature in a polygon layer

I tracked it down to line 403 and 416.
403: if (layer.featureCollection !== null) {
416 } else if (layer.layerObject !== null) {
Both line crash when object is undefined.

They should be
403: if (layer.featureCollection != null) {
416 } else if (layer.layerObject != null) {
which will detect both null and undefined.

I think this was right at a time in the past but somehow was reintroduced later on.

Error handling: Unable to display results if image in pop-up unavailable

If an image, set in the web map's pop-up media, becomes unavailable, the app will linger when querying a location with this pop-up image. Ideally, an image should not be unavailable however would it be possible to still have the pop-up display with the image unavailable icon, like what happens in the web map?
image

Add support for Tiled Map Services

Published a single feature service as both a map and feature service.
Added the map service to a web map and enabled pop-ups. Configured with Info Lookup and receive:

Lookup Layers Settings
Lookup Layers

No layers available. Check your web map for valid layers.

Here's the map service and web app I used.

Went pecking in the source code and came across this.

enhancement request - legend

With more and more layers being added to our map, it'd be nice to have a legend so users'd know what are those symbols. What do you think?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.