AnsweredAssumed Answered

When I apply bikelayer for bike trails  it always draw near specific area despite the fact I changed lat and long of map

Question asked by javedboqo on Jul 14, 2020
Latest reply on Jul 14, 2020 by javedboqo

When I apply bikelayer for bike trails it always draw near specific area despite the fact I changed lat and long of map:

 

Code:

 

require([
"esri/Map",
"esri/views/MapView",
"esri/layers/FeatureLayer"
],
function(
Map,
MapView,
FeatureLayer
) {

var map = new Map({
basemap: "topo-vector"
});

var view = new MapView({
container: "viewDiv",
map: map,
center: [-82.438496,28.010780],
zoom: 13
});

 

var bikeTrailsRenderer = {
type: "simple",
symbol: {
type: "simple-line",
style: "short-dot",
color: "#FF0000",
width: "5px"
}
};

var bikeTrails = new FeatureLayer({
url:
"https://services3.arcgis.com/GVgbJbqm8hXASVYi/arcgis/rest/services/Trails/FeatureServer/0",
renderer: bikeTrailsRenderer,
definitionExpression: "USE_BIKE = 'YES'"
});

map.add(bikeTrails, 1);

Outcomes