|
POST
|
Hey Shital, When you added 'dojo/dnd/Moveable' and 'dojo/dom-class' to the define([ ] part of the code, did you have it in the same order you called it in the function( ) area? Ex: define([ 'dojo/_base/lang', 'dojo/_base/array', 'dojo/_base/html', 'dojo/_base/sniff', 'dojo/_base/config', 'dojo/dnd/Moveable', 'dojo/io-query', 'dojo/query', 'dojo/NodeList-traverse', 'dojo/Deferred', 'dojo/on', 'dojo/dom-class', 'dojo/json', 'dojo/cookie', 'dojo/number', 'dojo/date/locale', 'dojox/encoding/base64', 'esri/lang', 'esri/arcgis/utils', 'esri/SpatialReference', 'esri/geometry/Extent', 'esri/geometry/Multipoint', 'esri/geometry/Polyline', 'esri/geometry/Polygon', 'esri/geometry/webMercatorUtils', 'esri/tasks/GeometryService', 'esri/tasks/ProjectParameters', 'esri/urlUtils', 'esri/request', 'esri/graphicsUtils', 'jimu/portalUrlUtils', './shared/utils' ], function(lang, array, html, has, config, Moveable, ioQuery, query, nlt, Deferred, on, domClass, json, cookie, dojoNumber, dateLocale, base64, esriLang, arcgisUtils, SpatialReference, Extent, Multipoint, Polyline, Polygon, webMercatorUtils, GeometryService, ProjectParameters, esriUrlUtils, esriRequest, graphicsUtils, portalUrlUtils, sharedUtils)
... View more
05-16-2016
11:11 AM
|
5
|
6
|
1793
|
|
POST
|
Hey Amy, not sure if you're still looking for a solution but I just posted it over here: https://community.esri.com/message/596061#comment-596061
... View more
03-18-2016
10:07 AM
|
3
|
0
|
2677
|
|
POST
|
So not sure if you've found the answer to this yet, but I just got it sorted out today. Hopefully some other people can reference this if they want to get these popups moving. It's mashing the information in this link: Esri JS API Draggable Popups - JSFiddle with the wacky web app builder file structure. Started with going to this css file: [app instal]\server\apps\[app#]\themes\LaunchpadTheme\common.css and making it look like this: @import url("panels/LaunchpadPanel/style.css");
.esriPopupWrapper .title {
cursor: move;
}
.esriPopup .hidden {
display: none !important;
} This makes the pointer turn into the move cursor so your user knows they can move it around. Then I headed to [app instal]\server\apps\[app#]\jimu.js\utils.js and added the following to their respective locations: define(['dojo/dnd/Moveable', 'dojo/dom-class'],
function(Moveable, domClass)
Then down around line 1089 (or do a find and look for createWebMap) I added some lines to mo.createWebMap: mo.createWebMap = function(portalUrl, itemId, mapDiv, /* optional */ options) {
portalUrl = portalUrlUtils.getStandardPortalUrl(portalUrl);
var itemUrl = portalUrlUtils.getBaseItemUrl(portalUrl);
arcgisUtils.arcgisUrl = itemUrl;
var def = arcgisUtils.createMap(itemId, mapDiv, options);
def.then(function (response){
var map = response.map;
var handle = query(".title", map.infoWindow.domNode)[0];
var dnd = new Moveable(map.infoWindow.domNode, {
handle: handle
});
});
return def;
}; Let me know if you have any questions, I'll try to answer them.
... View more
03-18-2016
10:05 AM
|
19
|
8
|
3439
|
|
POST
|
Yeah I figured it had to do with the resize function, I just wasn't sure where to find it. I guessed it's somewhere in the "themes" folder, but I searched for a while and couldn't lock it down.
... View more
03-10-2016
09:42 AM
|
0
|
4
|
1523
|
|
POST
|
Not sure why this is happening. Might be because the logo is large, but I've dug into the themes and configs and cant figure out a fix for the life of me. I've attached an image. Anyone have any suggestions? Title is supposed to be "City Development".
... View more
03-10-2016
09:21 AM
|
0
|
7
|
3534
|
|
POST
|
I built a web app from an Index file, and I'm curious if there's a way to massage it into the Launchpad theme that comes from the web app builder? Seems like a ton of work, but not sure if someone has a streamlined method yet. Thank
... View more
01-25-2016
08:11 AM
|
0
|
0
|
1502
|
|
POST
|
Even with it fixed for correct breaks, it doesn't work: Thanks for trying to problem solve with me sources.push({ featureLayer: new FeatureLayer("https://gis.cityofthornton.net/arcgis/rest/services/External_Webmaps/MasterAddress/MapServer/0"), searchFields: ["ADDRESS"], displayField: "ADDRESS", suggestionTemplate: "${ADDRESS}", exactMatch: false, outFields: ["PT_TYPE", "ADDRESS", "CITY", "STATE", "ZIPCODE", "BUS_NAME", "BUS_TYPE", "LANDUSE", "ZONING", "WARD", "SUBDIVISIO", "DEV_NAME"], infoTemplate: new InfoTemplate("<b>Address: ${ADDRESS}</b>", "<b>Address Type: ${PT_TYPE}</br>","<b>Address: ${ADDRESS}</br>","<b>City: ${CITY}</b>", "<b>State: ${STATE}</br>","<b>Zipcode: ${ZIPCODE}</b>","<b>Business Name: ${BUS_NAME}</br>","<b>Business Type: ${BUS_TYPE}</br>","<b>Landuse: ${LANDUSE}</b>", "<b>Zoning: ${ZONING}</br>","<b>Ward: ${WARD}</b>", "<b>Subdivision Name: ${SUBDIVISIO}</br>","<b>Development Name: ${DEV_NAME}</b>"), name: "Owner Search", placeholder: "Search Owners", maxResults: 6, maxSuggestions: 6, enableSuggestions: true, minCharacters: 0 }); s.set("sources", sources); s.startup();
... View more
01-19-2016
02:16 PM
|
0
|
0
|
1098
|
|
POST
|
Yeah it's always those first three. Here's a screen shot:
... View more
01-19-2016
01:46 PM
|
0
|
2
|
1098
|
|
POST
|
Not sure if this is a default or not, but when I get my search results, only three fields show up. Regardless of how many I have set in my index. Am I missing something? below is the code for the search: sources.push({ featureLayer: new FeatureLayer("https://gis.cityofthornton.net/arcgis/rest/services/External_Webmaps/MasterAddress/MapServer/0 "), searchFields: ["ADDRESS"], displayField: "ADDRESS", suggestionTemplate: "${ADDRESS}", exactMatch: false, outFields: ["PT_TYPE", "ADDRESS", "CITY", "STATE", "ZIPCODE", "BUS_NAME", "BUS_TYPE", "LANDUSE", "ZONING", "WARD", "SUBDIVISIO", "DEV_NAME"], infoTemplate: new InfoTemplate("Address: ${ADDRESS}", "Address Type: ${PT_TYPE}</br>Address: ${ADDRESS}</br>City: ${CITY}", "State: ${STATE}</br>Zipcode: ${ZIPCODE}","Business Name: ${BUS_NAME}</br>Business Type: ${BUS_TYPE}</br>Landuse: ${LANDUSE}", "Zoning: ${ZONING}</br>Ward: ${WARD}", "Subdivision Name: ${SUBDIVISIO}</br>Development Name: ${DEV_NAME}"), name: "Address Search", placeholder: "Search Addresses", maxResults: 6, maxSuggestions: 6, enableSuggestions: true, minCharacters: 0 }); s.set("sources", sources); s.startup();
... View more
01-19-2016
11:49 AM
|
0
|
5
|
2953
|
|
POST
|
Anyone know how to customize the search popup window? I have my normal popups configured with field names etc, but when I use the search/geocoder bar at the top, when I click on the address or feature I'm zoomed to, the pop up has the raw field names and all of them are displayed. Thanks Tyler
... View more
10-13-2015
10:01 AM
|
0
|
0
|
1969
|
|
DOC
|
Awesome. Thanks a bunch for pointing me in the right direction to all the custom widgets. Knew about it on the Flex forum, but not here. Keep up the awesome work!
... View more
07-01-2015
03:35 PM
|
0
|
0
|
6459
|
|
DOC
|
Hey Robert, Curious if you've had any issues with the popups that are configured in the initial web map conflicting with the "select by shape" option? Basically, when I try to create a polygon or a point to select by, my clicks bring up my pop ups. I can still create my polygon, I just have to ignore the popups and click around them. Thanks Tyler
... View more
07-01-2015
03:04 PM
|
0
|
0
|
6459
|
|
POST
|
I guess I should have specified in my initial question. I know eSearch is available in Flex, but is it available in JavaScript? I'm in the process of migrating all our webmaps from Flex to JavaScript.
... View more
06-30-2015
03:29 PM
|
0
|
2
|
965
|
|
POST
|
Anyone build a data extractor where you can queryor select a group of addresses and export the result as a csv to the user desktop? Example. A cities address points that have their respective subdivision name in the table. User can select by polygon, or select using a query on a subdivision name to pull up all the addresses in that subdivision. Then export them as a csv to their desktop.
... View more
06-30-2015
02:37 PM
|
0
|
4
|
3641
|
|
POST
|
Figured out my own issue. The {shape} field was hidden in the .mxd when being published. If anyone has this issue, hopefully that's the answer
... View more
06-27-2014
06:51 AM
|
0
|
0
|
402
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 10-23-2018 08:48 AM | |
| 1 | 07-27-2016 08:32 AM | |
| 5 | 05-16-2016 11:11 AM | |
| 3 | 03-18-2016 10:07 AM | |
| 19 | 03-18-2016 10:05 AM |
| Online Status |
Offline
|
| Date Last Visited |
11-11-2020
02:23 AM
|