|
POST
|
I might be wrong, but the legend widget is getting the symbology from the rest, so when you change the symbology in your app, it won't show a change in the legend.
... View more
07-08-2016
05:49 AM
|
0
|
1
|
3371
|
|
DOC
|
Glad you like it! Next I will add links to the teams homepage when you click on the logo.
... View more
07-06-2016
08:33 AM
|
0
|
0
|
13658
|
|
POST
|
Sounds good, you can also remove the graphics layer from my code to make it cleaner. Let me know if you have any other questions.
... View more
06-30-2016
12:20 PM
|
0
|
0
|
2862
|
|
POST
|
IS there a reason why you add it as a graphics layer and not as a feature layer? *I have edited the code to include your picture marker symbol. <!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,minimum-scale=1,user-scalable=no"/>
<meta name="apple-mobile-web-app-capable" content="yes" />
<title>Switch Test</title>
<!-- css references -->
<link rel="stylesheet" href="https://js.arcgis.com/3.16/esri/css/esri.css">
<link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/dojo/1.10.4/dojox/mobile/themes/iphone/iphone.css">
<link rel="stylesheet" href="https://js.arcgis.com/3.16/dijit/themes/claro/claro.css">
<style>
html, body, #map {
height: 100%;
margin: 0;
padding: 0;
}
</style>
<script src="https://js.arcgis.com/3.16/"></script>
<script>
var map;
require([
"esri/map",
"esri/layers/ArcGISTiledMapServiceLayer",
"esri/layers/GraphicsLayer",
"esri/layers/FeatureLayer",
"esri/renderers/SimpleRenderer",
"esri/tasks/query",
"esri/tasks/QueryTask",
"esri/geometry/Point",
"esri/SpatialReference",
"esri/symbols/PictureMarkerSymbol",
"esri/graphic",
"esri/InfoTemplate",
"esri/tasks/FeatureSet",
"dojo/dom",
"dojo/ready",
"dojox/mobile/Switch",
"dojo/domReady!"
],
function(Map, ArcGISTiledMapServiceLayer,GraphicsLayer,FeatureLayer,SimpleRenderer, Query, QueryTask, Point, SpatialReference, PictureMarkerSymbol, Graphic, InfoTemplate,dom, ready, Switch) {
map = new Map("map", {
basemap: "topo",
center: [-111.841947,40.765530],
zoom: 15
});
var basemap = new ArcGISTiledMapServiceLayer ("https://fmags.fm.utah.edu/arcgis/rest/services/mapservices/public_basemap_2014/MapServer");
map.addLayer(basemap);
var featureLayer = new FeatureLayer("https://fm-agstestdev.fm.utah.edu:6443/arcgis/rest/services/Rachel/CoffeFood/MapServer/0",{
mode: FeatureLayer.MODE_ONDEMAND,
outFields: ["*"]
});
var pictureMarkerSymbol = new PictureMarkerSymbol("http://map.utah.edu/images/icons/poi/coffeeicon.png", 30, 30);
var featureRend = new SimpleRenderer(pictureMarkerSymbol);
featureLayer.setRenderer(featureRend);
map.addLayer(featureLayer);
var coffeeGL = new GraphicsLayer({
id: "coffeeGL",
url:"https://fm-agstestdev.fm.utah.edu:6443/arcgis/rest/services/Rachel/CoffeFood/MapServer/0",
});
map.addLayer(coffeeGL);
});
</script>
<body class = "claro">
<div id="map" ></div>
</body>
</html>
... View more
06-30-2016
11:50 AM
|
1
|
2
|
2862
|
|
DOC
|
Adrian Welsh Rickey Fite I am working on adding team logos and names, what do you think about the positioning? Or would it look better adding it above the search bar?
... View more
06-22-2016
08:22 AM
|
1
|
0
|
13658
|
|
DOC
|
I have added all MLS teams, next up I think I will add some team logos and names.
... View more
06-20-2016
10:40 AM
|
0
|
0
|
13658
|
|
POST
|
Thanks Rupert, I'll have to submit my app to the gallery
... View more
06-10-2016
06:46 AM
|
0
|
0
|
2033
|
|
POST
|
That is the google chrome version I am using. Got to love programming. Yes the app is picture heavy, sadly that makes it a bit slower
... View more
06-09-2016
11:42 AM
|
0
|
0
|
2033
|
|
POST
|
What browser are you using? It is weird I opened it up in IE, Firefox and Google Chrome but all looks fine.
... View more
06-09-2016
11:15 AM
|
0
|
2
|
2033
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 07-06-2015 06:58 AM | |
| 1 | 05-04-2016 07:27 AM | |
| 1 | 07-06-2017 08:12 AM | |
| 1 | 10-26-2015 11:51 AM | |
| 1 | 12-12-2014 12:05 PM |
| Online Status |
Offline
|
| Date Last Visited |
11-11-2020
02:23 AM
|