|
POST
|
Hi Mehdi Sabaghzadeh, OK - then there should be another issue causing this problem... Can you tell something about the source of the Basemap, i.e. where does it come from? Are there any other sources for a background map you have access to? And if yes, do they show up in the Data Frame? What version of ArcMap are you using? etc. BR, Egge-Jan
... View more
05-29-2020
07:02 AM
|
0
|
0
|
1314
|
|
POST
|
Hi Mehdi Sabaghzadeh, The problem is: your Basemap is located outside the extents of the Data Frame, hence it is invisible. The solution is simple: In the Table of Contents, right-click on your Basemap From the context menu, select Zoom to Layer to zoom to the extent of the selected layer Now your Basemap will be visible Does this solve the issue? BR, Egge-Jan
... View more
05-29-2020
03:59 AM
|
0
|
0
|
1314
|
|
POST
|
Hi Christian Bischof, Actually, that's what I asked myself from the first time I saw your question: why would you want to have a marker that is partly clickable, and partly non-clickable at all?! From an end user perspective: it would drive me nuts if I clicked on a marker (because visually it is just one marker) and it would only react when I clicked in a particular part of it. That's why click events which happen "somewhere very close to it" are also honored. It would discourage the users of your app if they have to click 10 or 20 times to open a popup... So, anyways, you could try to use the suggestion which I gave above, but most probably it is best not to use it at all. BR, Egge-Jan
... View more
05-29-2020
02:52 AM
|
1
|
1
|
4000
|
|
POST
|
Hi Erica Newton, Yes, you can configure a Custom Attribute Display in ArcGIS Online: Configure pop-ups—ArcGIS Online Help | Documentation There is a rich text editor available, supporting a (limited set of) HTML in the background: Supported HTML—ArcGIS Online Help | Documentation So, you should be able to create a <table> with multiple columns to present your attribute data in a clear and readable manner. This configuration might take some time and effort, but it is a one time affair... HTH, Egge-Jan
... View more
05-28-2020
07:42 AM
|
1
|
3
|
1970
|
|
POST
|
Hi Christian Bischof, Maybe you can add the feature layers twice. Once the original one, the one with the shadow, and another one on top, with your own rendering. In that case you can set popupEnabled to false for the first layer and to true for the second one. This should give the desired effect. Please note: you may also wish to set the listMode to false for the bottom layer, just to avoid that the layer appears twice in the LayerList (if you have any in your app). Does this solve your issue? BR, Egge-Jan
... View more
05-28-2020
04:12 AM
|
2
|
4
|
4000
|
|
POST
|
Hi Benny Nein, These cap's or butt's you want to add to the end of each line segment, could these be arrows? In that case you could modify the line style (Change Style) for the lines to have an arrow on both ends. See screen capture attached. Does this solve your issue? BR, Egge-Jan
... View more
05-27-2020
08:21 AM
|
1
|
1
|
1411
|
|
POST
|
Hi Christian Bischof, Would this tutorial Style feature layers | ArcGIS API for JavaScript 4.15 answer your question? BR, Egge-Jan
... View more
05-27-2020
06:50 AM
|
1
|
6
|
4000
|
|
POST
|
Hi Reham Alharbi, Apparently something is wrong with your code... Do you see any error messages in the console of your browser? (You can open this console by pressing F12, for most modern browsers.) In the script below I tried to replicate your app - focusing on Madinah, and with a working Search widget - all in one html file. You did split your code into separate css and js files, which is of course OK. I suppose your issue has something to do with the order of your code. What do you see? does the map appear at all? With or without the zoom buttons? Please let us (the community) know whether you managed to solve your issue or not. We are here to help. BR, Egge-Jan <html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="initial-scale=1, maximum-scale=1,user-scalable=no" />
<!--
ArcGIS API for JavaScript, https://js.arcgis.com
For more information about the search_basic sample, read the original sample description at developers.arcgis.com.
https://developers.arcgis.com/javascript/3/jssamples/search_basic.html
-->
<title>ArcGIS API for JavaScript | Basic Search</title>
<link rel="stylesheet" href="https://js.arcgis.com/3.32/esri/themes/calcite/dijit/calcite.css">
<link rel="stylesheet" href="https://js.arcgis.com/3.32/esri/themes/calcite/esri/esri.css">
<style>
html,
body,
#map {
height: 100%;
width: 100%;
margin: 0;
padding: 0;
}
#search {
display: block;
position: absolute;
z-index: 2;
top: 20px;
left: 74px;
}
</style>
<script src="https://js.arcgis.com/3.32/"></script>
<script>
require([
"esri/map",
"esri/dijit/Search",
"dojo/domReady!"
], function (Map, Search) {
var map = new Map("map", {
basemap: "topo",
center: [39.608684, 24.469576], // lon, lat
zoom: 13
});
var search = new Search({
map: map
}, "search");
search.startup();
});
</script>
</head>
<body class="calcite">
<div id="search"></div>
<div id="map"></div>
</body>
</html>
... View more
05-26-2020
08:04 AM
|
0
|
0
|
756
|
|
POST
|
Hi Genasys Esri, Did you have a look at this blogpost https://community.esri.com/groups/arcgis-server-with-javascript-api/blog/2019/10/22/js-api-v4-uploading-a-file-to-a-gp-service ? BR, Egge-Jan
... View more
05-26-2020
05:14 AM
|
0
|
0
|
571
|
|
POST
|
Hi Puthran Joshua, Please see the sample below. I did take a basic tutorial from Esri - Add layers to a map | ArcGIS API for JavaScript 4.15 - and extend this with a LayerList widget and a GroupLayer, just to prove that it is possible to add FeatureLayers to a GroupLayer. From here you could extend the application further, with your own data of course. Hope this helps. BR, Egge-Jan <html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no">
<title>ArcGIS JavaScript Tutorials: Add a GroupLayer to a LayerList widget</title>
<link rel="stylesheet" href="https://js.arcgis.com/4.15/esri/css/main.css">
<script src="https://js.arcgis.com/4.15/"></script>
<style>
html, body, #viewDiv {
padding: 0;
margin: 0;
height: 100%;
width: 100%;
}
</style>
<script>
require([
"esri/Map",
"esri/views/MapView",
"esri/layers/FeatureLayer",
"esri/layers/GroupLayer",
"esri/widgets/LayerList"
], function(Map, MapView, FeatureLayer, GroupLayer, LayerList) {
var map = new Map({
basemap: "topo-vector"
});
var view = new MapView({
container: "viewDiv",
map: map,
center: [-118.80543,34.02700],
zoom: 13
});
// Trailheads feature layer (points)
var trailheadsLayer = new FeatureLayer({
url: "https://services3.arcgis.com/GVgbJbqm8hXASVYi/arcgis/rest/services/Trailheads/FeatureServer/0"
});
// Trails feature layer (lines)
var trailsLayer = new FeatureLayer({
url: "https://services3.arcgis.com/GVgbJbqm8hXASVYi/arcgis/rest/services/Trails/FeatureServer/0"
});
// Parks and open spaces (polygons)
var parksLayer = new FeatureLayer({
url: "https://services3.arcgis.com/GVgbJbqm8hXASVYi/arcgis/rest/services/Parks_and_Open_Space/FeatureServer/0"
});
var layerList = new LayerList({
view: view
});
// Adds widget below other elements in the top left corner of the view
view.ui.add(layerList, {
position: "top-left"
});
var myGroupLayer = new GroupLayer({
title: "My GroupLayer",
layers: [parksLayer, trailsLayer, trailheadsLayer]
});
map.add(myGroupLayer);
});
</script>
</head>
<body>
<div id="viewDiv"></div>
</body>
</html>
... View more
05-25-2020
09:07 AM
|
3
|
1
|
6909
|
|
POST
|
Hi Christian Bischof, Please have a look at the sample below. Two steps: You set a constraint on the MapView, a minZoom, to avoid users to zoom too far out With a custom function you can check whether the center of the map has moved outside the initial extent, in which case the map will be moved back to the initial position. Does this work for you? BR, Egge-Jan <!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="initial-scale=1,maximum-scale=1,user-scalable=no">
<title>Limit MapView to Certain Area - ArcGIS JavaScript 4.15</title>
<link rel="stylesheet" href="https://js.arcgis.com/4.15/esri/css/main.css">
<script src="https://js.arcgis.com/4.15/"></script>
<style>
html, body, #viewDiv {
padding: 0;
margin: 0;
height: 100%;
width: 100%;
}
</style>
<script>
require([
"esri/Map",
"esri/views/MapView"
], function(Map, MapView) {
let map = new Map({
basemap: "streets"
});
let view = new MapView({
container: "viewDiv",
map: map,
zoom: 7,
center: [13, 47.2], // longitude, latitude, centered on Austria
constraints: {
minZoom: 7 // Use this constraint to avoid zooming out too far
}
});
view.when(function() {
limitMapView(view);
});
function limitMapView(view) {
let initialExtent = view.extent;
let initialZoom = view.zoom;
view.watch('stationary', function(event) {
if (!event) {
return;
}
// If the center of the map has moved outside the initial extent,
// then move back to the initial map position (i.e. initial zoom and extent
let currentCenter = view.extent.center;
if (!initialExtent.contains(currentCenter)) {
view.goTo({
target: initialExtent,
zoom: initialZoom
});
}
});
}
});
</script>
</head>
<body>
<div id="viewDiv"></div>
</body>
</html>
... View more
05-25-2020
07:46 AM
|
1
|
1
|
3208
|
|
POST
|
Hi Dan Patterson, Did you have a look at the release notes? What's new in version 1.8.0 | ArcGIS for Developers (also covering previous releases from 1.0.0 onward) HTH, Egge-Jan
... View more
05-20-2020
01:52 AM
|
1
|
1
|
2289
|
|
POST
|
Hi rajni sharma, What do you think about this one? ArcGIS JavaScript with New Zealand data - LINZ Basemapgallery BR, Egge-Jan
... View more
05-15-2020
02:20 PM
|
1
|
1
|
3582
|
|
POST
|
Hi Devin Lavigne, Please note: I am not familiar with CityEngine. That said, I would suppose "Home" is one of the bookmarks in the Bookmarks manager, which can be edited with Edit bookmarks.... But you say that's not the case... Sorry, then I would not know where and how to edit the "Home" bookmark. Egge-Jan
... View more
05-15-2020
12:13 PM
|
0
|
0
|
898
|
|
POST
|
Hi Robin DiSalvo, Oh sorry, I just used 'Shape_Area' as an example. In your case you should just choose the relevant column from your attribute data, i.e. the one containing the Percent of Total Permits Issued. HTH, Egge-Jan
... View more
05-14-2020
07:44 AM
|
1
|
0
|
927
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 03-30-2020 09:03 AM | |
| 2 | 12-12-2024 03:56 AM | |
| 2 | 04-15-2024 03:25 AM | |
| 2 | 03-25-2024 02:06 PM | |
| 1 | 01-17-2024 10:19 AM |
| Online Status |
Offline
|
| Date Last Visited |
11-19-2025
02:25 AM
|