POST
|
Figured it out. I was referencing an object when creating the textsymbol. Needed to replace fromAddress with fromAddress.Address: var textSymbol = new TextSymbol(fromAddress.Address, font, new Color([0, 0, 0]));
... View more
03-17-2017
07:02 AM
|
0
|
0
|
752
|
POST
|
Same result, label is not displaying: if (fromAddress){
document.getElementById("fromAddr").value = fromAddress.Address + ", " + fromAddress.City + ", " + fromAddress.Region, ", " + fromAddress.Postal;
fPoint = new Point(evt.address.location, new SpatialReference({ wkid: 4326 }));
attr = {
"Address": fromAddress
};
//Create point graphic from geocoded point, add to graphiclayer, add layer to map.
fGraphic = new Graphic(fPoint, fromGeocodeSymbol, attr);
//graphicsLayer = new GraphicsLayer();
graphicsLayer.add(fGraphic);
//mapMain.addLayer(graphicsLayer);
var font = new Font("14pt", Font.STYLE_NORMAL, Font.VARIANT_NORMAL);
// create a text symbol
var textSymbol = new TextSymbol(fromAddress, font, new Color([0, 0, 0]));
var labelPointGraphic = new Graphic(fPoint, textSymbol);
// add the label point graphic to the map
mapMain.graphics.add(labelPointGraphic);
zoomToAddresses();
getZone(fPoint, "from");
}
... View more
03-16-2017
06:45 AM
|
0
|
1
|
752
|
POST
|
Yes it does: // Create the map
mapMain = new Map("cpCenter", {
basemap : "osm",
extent : extentInitial,
showLabels : true
});
... View more
03-16-2017
06:26 AM
|
0
|
3
|
752
|
POST
|
I have some code that will geocode a point and display it on the map. I would like to label the point with the address. I create a label graphic using the coordinates of the point and the address, add graphic to the graphics layer, but it does not display on the map. Not sure what I am missing. Here is the section of code: fromlocator.on("location-to-address-complete", function(evt) {
//mapMain.graphics.remove(fGraphic);
var attr;
if (evt.address.address) {
var fromAddress = evt.address.address;
alert(fromAddress.Address + ", " + fromAddress.City + ", " + fromAddress.Region, ", " + fromAddress.Postal);
if (fromAddress){
document.getElementById("fromAddr").value = fromAddress.Address + ", " + fromAddress.City + ", " + fromAddress.Region, ", " + fromAddress.Postal;
fPoint = new Point(evt.address.location, new SpatialReference({ wkid: 4326 }));
attr = {
"Address": fromAddress
};
//Create point graphic from geocoded point, add to graphiclayer, add layer to map.
fGraphic = new Graphic(fPoint, fromGeocodeSymbol, attr);
graphicsLayer = new GraphicsLayer();
graphicsLayer.add(fGraphic);
mapMain.addLayer(graphicsLayer);
// create a text symbol to define the style of labels
var textColor = new Color("#666");
var textLabel = new TextSymbol(fromAddress)
textLabel.setColor(textColor);
textLabel.font.setSize("14pt");
textLabel.font.setFamily("arial");
textLabelRenderer = new SimpleRenderer(textLabel);
//create label to add to graphic layer
var testlabel = new Graphic(fPoint, textLabel)
//add label to graphics layer
mapMain.graphics.add(testlabel);
zoomToAddresses();
getZone(fPoint, "from");
}
}
});
... View more
03-16-2017
06:06 AM
|
0
|
6
|
2002
|
POST
|
I have some code that will allow a user to geocode two addresses. It will display the points of the addresses on the map. I want to then set the extent of the map to the two points. To accomplish this I get the x and y coordinates of both points, create a polyline, get and set the extent of the polyline as the new extent of the map. The problem is that the new extent is zoomed in a bit to far and you have to zoom out one level to see the points. To get around this i thought I would be able to get the zoom level after the setExtent using the extent-change listener and add one to it to zoom the map out one level. Problem is if I put the setZoom within the extent-change listener function, the code will get into a loop. If I put the setZoom outside this function it is undefined. Specifically the lines starting at 252 are in question. I am not sure what else I can check or where else I can put the setZoom so that it does not get called until zoom is populated. /**
* Created by Student on 11/20/2014.
*/
var mapMain;
var fromXCoord;
var toXCoord;
var pLine;
var fPoint;
var tPoint;
var fromZone;
var toZone;
var fZone;
var tZone;
var numPass;
// @formatter:off
require([
"esri/map",
"esri/SpatialReference",
"esri/geometry/webMercatorUtils",
"esri/geometry/Extent",
"esri/InfoTemplate",
"esri/layers/FeatureLayer",
"esri/layers/LabelClass",
"esri/dijit/Scalebar",
"esri/symbols/SimpleFillSymbol",
"esri/symbols/SimpleLineSymbol",
"esri/symbols/SimpleMarkerSymbol",
"esri/symbols/TextSymbol",
"esri/Color",
"esri/renderers/SimpleRenderer",
"esri/renderers/UniqueValueRenderer",
"esri/dijit/Search",
"esri/graphic",
"esri/geometry/Polyline",
"esri/geometry/Point",
"esri/tasks/query",
"esri/tasks/QueryTask",
"dojo/ready",
"dojo/parser",
"dojo/on",
"dojo/domReady!",
"dojo/promise/all",
"dijit/layout/BorderContainer",
"dijit/layout/ContentPane",
"dijit/TitlePane",
"dijit/registry"
],
function(
Map,SpatialReference,webMercatorUtils,Extent,InfoTemplate,FeatureLayer,LabelClass,Scalebar,SimpleFillSymbol,SimpleLineSymbol,SimpleMarkerSymbol,TextSymbol,Color,SimpleRenderer,UniqueValueRenderer,
Search,Graphic,Polyline,Point,Query,QueryTask,
ready, parser, on, all,
BorderContainer, ContentPane, TitlePane, registry
) {
// @formatter:on
// Wait until DOM is ready *and* all outstanding require() calls have been resolved
ready(function() {
// Parse DOM nodes decorated with the data-dojo-type attribute
parser.parse();
/*
* Step: Specify the initial extent
* Note: Exact coordinates may vary slightly from snippet/solution
*/
var extentInitial = new Extent({
"xmin" : -74.0249340000041,
"ymin" : 42.5025420000134,
"xmax" : -73.5927189999818,
"ymax" : 43.1172190002567,
"spatialReference" : {
"wkid" : 4326
}
});
// Create the map
mapMain = new Map("cpCenter", {
basemap : "osm",
extent : extentInitial,
showLabels : true
});
/*
* Step: Add the taxi layer layer to the map
*/
var albTaxiLayerURL = "http://services2.arcgis.com/A3lMfLhXIUtyxP6p/arcgis/rest/services/CityOfAlbanyTaxi/FeatureServer/0"
//Step: Specify the output fields.
var taxiOutFields = ["OBJECTID", "Zone", "Fare"];
//Template for popup when user clicks a zone.
var taxiTemplate = new InfoTemplate();
taxiTemplate.setTitle("</br><tr><td><b>Zone: ${Zone}</b></tr></td>");
taxiTemplate.setContent("<tr><b>Fare: $</b><td>${Fare}</td></tr></br>");
//Construct the taxi layer
var taxiLyr = new FeatureLayer(albTaxiLayerURL, {
infoTemplate : taxiTemplate,
outFields : taxiOutFields,
});
var defStyle = new SimpleFillSymbol(SimpleFillSymbol.STYLE_SOLID,
new SimpleLineSymbol(SimpleLineSymbol.STYLE_NULL,new Color([0,0,0])),new Color([215,252,216,0.75])
);
//This section crate the thematic to color code each zone
var renderer = new UniqueValueRenderer(defStyle, "Zone");
//add symbol for each possible value
renderer.addValue("A", new SimpleFillSymbol(SimpleFillSymbol.STYLE_SOLID,
new SimpleLineSymbol(SimpleLineSymbol.STYLE_NULL,new Color([0,0,0])),new Color([49,70,140, .25])));
renderer.addValue("B", new SimpleFillSymbol(SimpleFillSymbol.STYLE_SOLID,
new SimpleLineSymbol(SimpleLineSymbol.STYLE_NULL,new Color([0,0,0])),new Color([159,188,245, .25])));
renderer.addValue("C", new SimpleFillSymbol(SimpleFillSymbol.STYLE_SOLID,
new SimpleLineSymbol(SimpleLineSymbol.STYLE_NULL,new Color([0,0,0])),new Color([135,59,92, .25])));
renderer.addValue("D", new SimpleFillSymbol(SimpleFillSymbol.STYLE_SOLID,
new SimpleLineSymbol(SimpleLineSymbol.STYLE_NULL,new Color([0,0,0])),new Color([68,135,108, .25])));
renderer.addValue("E", new SimpleFillSymbol(SimpleFillSymbol.STYLE_SOLID,
new SimpleLineSymbol(SimpleLineSymbol.STYLE_NULL,new Color([0,0,0])),new Color([245,95,235, .25])));
renderer.addValue("F", new SimpleFillSymbol(SimpleFillSymbol.STYLE_SOLID,
new SimpleLineSymbol(SimpleLineSymbol.STYLE_NULL,new Color([0,0,0])),new Color([227,117,84, .25])));
renderer.addValue("G", new SimpleFillSymbol(SimpleFillSymbol.STYLE_SOLID,
new SimpleLineSymbol(SimpleLineSymbol.STYLE_NULL,new Color([0,0,0])),new Color([232,245,115, .25])));
renderer.addValue("X", new SimpleFillSymbol(SimpleFillSymbol.STYLE_SOLID,
new SimpleLineSymbol(SimpleLineSymbol.STYLE_SOLID,new Color([0,0,0]),.5),new Color([232,245,115, 0])));
taxiLyr.setRenderer(renderer);
// create a text symbol to define the style of labels
var labelColor = new Color("#666");
var zoneLabel = new TextSymbol().setColor(labelColor);
zoneLabel.font.setSize("14pt");
zoneLabel.font.setFamily("arial");
var json = {
"labelExpressionInfo": {"value": "{Zone}"}
};
//create instance of LabelClass (note: multiple LabelClasses can be passed in as an array)
var labelClass = new LabelClass(json);
labelClass.symbol = zoneLabel; // symbol also can be set in LabelClass' json
taxiLyr.setLabelingInfo([ labelClass ]);
mapMain.addLayer(taxiLyr);
mapMain.centerAndZoom(new Point(-73.769879, 42.662037, new SpatialReference({ wkid: 4326 })), 12);
/*
* Step: Add the scalebar widget to the map
*/
var scalebar = new Scalebar({
map: mapMain,
// "dual" displays both miles and kilmometers
// "english" is the default, which displays miles
// use "metric" for kilometers
scalebarUnit: "dual"
});
//from address geocoder
var fromSearch = new Search({
enableLabel: true,
enableInfoWindow: false,
autoNavigate: false,
map: mapMain
}, "");
fromSearch.startup();
//to address geocoder
var toSearch = new Search({
enableLabel: true,
enableInfoWindow: false,
autoNavigate: false,
map: mapMain
}, "");
toSearch.startup();
dijit.registry.byId("goButton").on("click", doSearchValue);
function doSearchValue(e) {
var fromAddress = document.getElementById("fromAddr").value
//alert(fromAddress);
//highlight symbol
fromGeocodeSymbol = new SimpleMarkerSymbol(
SimpleMarkerSymbol.STYLE_CIRCLE,
20,
new SimpleLineSymbol(
SimpleLineSymbol.STYLE_SOLID,
new Color([85,82,82, 0.5]),
10
), new Color([76,230,0, 0.9]));
fromSearch.sources[0].highlightSymbol = fromGeocodeSymbol; //set the symbol for the highlighted symbol
fromSearch.search(fromAddress);
var toAddress = document.getElementById("toAddr").value
//alert(toAddress);
//highlight symbol
var toGeocodeSymbol = new SimpleMarkerSymbol(
SimpleMarkerSymbol.STYLE_CIRCLE,
20,
new SimpleLineSymbol(
SimpleLineSymbol.STYLE_SOLID,
new Color([85,82,82, 0.5]),
10
), new Color([245,29,29, 0.9]));
toSearch.sources[0].highlightSymbol = toGeocodeSymbol; //set the symbol for the highlighted symbol
//If multiple results are found, it will default and select the first.
toSearch.search(toAddress);
//get coordinates of toAddress to pass to use to create polyline for zooming to extent.
fromSearch.on('select-result', function(result){
fromWebCoords = webMercatorUtils.webMercatorToGeographic(result.result.feature.geometry);
getCoordsAndZoom(fromWebCoords, "from");
});
toSearch.on('select-result', function(result){
toWebCoords = webMercatorUtils.webMercatorToGeographic(result.result.feature.geometry);
getCoordsAndZoom(toWebCoords, "to");
});
function getCoordsAndZoom(geoResults, which){
if(which === "from"){
fromXCoord = geoResults.x;
fromYCoord = geoResults.y;
fPoint = new Point(fromXCoord, fromYCoord, new SpatialReference({ wkid: 4326 }));
//console.log("In checkResults from " + fromXCoord);
}else{
toXCoord = geoResults.x;
toYCoord = geoResults.y;
tPoint = new Point(toXCoord, toYCoord, new SpatialReference({ wkid: 4326 }));
}
if(fromXCoord && fromYCoord && toXCoord && toYCoord){
var zoom;
//Create polyline that will be used to zoom to the extent of both points that were geocoded
var pLine = new Polyline(new SpatialReference({wkid:4326}));
pLine.addPath([[fromXCoord, fromYCoord],[toXCoord, toYCoord]]);
mapMain.setExtent(pLine.getExtent());
mapMain.on('extent-change', function(){
zoom = mapMain.getZoom() + 1;
});
if (zoom){
mapMain.setZoom(zoom);
}
}
};
}
});
});
... View more
03-07-2017
11:25 AM
|
0
|
2
|
1372
|
POST
|
I would still need to call function(result) to get the geometry of the points so I can assign the coordinates to fromXCoord and toXCoord, correct? When I call the same function on both dijits it does not seem that they get called at the same time, as the results return the same coordinate for from and to. //get coordinates of toAddress to pass to use to create polyline for zooming to extent.
fromSearch.on('select-result', function(result){
fromWebCoords = webMercatorUtils.webMercatorToGeographic(result.result.feature.geometry);
checkResults(fromWebCoords)
});
toSearch.on('select-result', function(result){
toWebCoords = webMercatorUtils.webMercatorToGeographic(result.result.feature.geometry);
checkResults(toWebCoords)
});
function checkResults(geoResults){
fromXCoord = geoResults.x;
toXCoord = geoResults.x
console.log("In checkResults from " + fromXCoord);
console.log("In checkResults to " + toXCoord);
};
... View more
02-03-2017
11:49 AM
|
0
|
2
|
767
|
POST
|
Thank You for the quick reply. I tried your suggestions and called another function from the toSearch.on('select-result', function(result){ and it will show the coordinate the first run through after the user clicks the Go button. The problem I am still having is that in order to zoom to the extent of both points I need the coordinates of both points outside each of the fromSearch.on and toSearch.on functions. When the user hits the Go button, since JS Code is not synchronous, these are always undefined outside these functions, the first time the app is run. If the user clicks Go a second time then I am able to get the coordinates. I am unable to determine how to access this information outside these functions when the user clicks Go initially. Is there a way to access the geometry information of the geocoded points without using the .on event?
... View more
02-03-2017
06:36 AM
|
0
|
4
|
767
|
POST
|
I am a beginner to ESRI javascript. I am attempting to write a script that will allow the user to enter a origin and destination address, display the points, and zoom to the extent of the two points. Using the search function I have been able to geocode both points and display them on the map. I would like to get the coordinates of each point and use them to set the extent of the map. Problem I am having is that I cannot access the coordinates of the points outside fromSearch.on('select-result', function(result). I set a global variable for the coordinates. I can assign and get the coordinates within fromSearch.on('select-result', function(result), but if I try to access this variable outside this function I get Undefined. I cannot figure out what I am missing. ready(function () {
// Parse DOM nodes decorated with the data-dojo-type attribute
parser.parse();
/*
* Step: Specify the initial extent
* Note: Exact coordinates may vary slightly from snippet/solution
*/
var extentInitial = new Extent({
"xmin" : -74.0249340000041,
"ymin" : 42.5025420000134,
"xmax" : -73.5927189999818,
"ymax" : 43.1172190002567,
"spatialReference" : {
"wkid" : 4326
}
});
// Create the map
mapMain = new Map("cpCenter", {
basemap : "osm",
extent : extentInitial,
});
/*
* Step: Add the ada layer layer to the map
*/
var adaLayer = new FeatureLayer("http://services2.arcgis.com/A3lMfLhXIUtyxP6p/arcgis/rest/services/ADA_Aug14/FeatureServer/0",{
opacity : .5
});
mapMain.addLayer(adaLayer);
var symbol = new SimpleFillSymbol().setColor(new Color([255,0,0,0.5]));
var renderer = new SimpleRenderer(symbol);
adaLayer.setRenderer(renderer);
/*
* Step: Add the scalebar widget to the map
*/
var scalebar = new Scalebar({
map: mapMain,
// "dual" displays both miles and kilmometers
// "english" is the default, which displays miles
// use "metric" for kilometers
scalebarUnit: "dual"
});
//from address geocoder
var fromSearch = new Search({
enableLabel: true,
enableInfoWindow: false,
autoNavigate: false,
map: mapMain
}, "");
fromSearch.startup();
//to address geocoder
var toSearch = new Search({
enableLabel: true,
enableInfoWindow: false,
autoNavigate: false,
map: mapMain
}, "");
toSearch.startup();
dijit.registry.byId("fromButton").on("click", doSearchValue);
function doSearchValue(e) {
var fromAddress = document.getElementById("fromAddr").value
//alert(fromAddress);
//highlight symbol
fromGeocodeSymbol = new SimpleMarkerSymbol(
SimpleMarkerSymbol.STYLE_CIRCLE,
20,
new SimpleLineSymbol(
SimpleLineSymbol.STYLE_SOLID,
new Color([85,82,82, 0.5]),
10
), new Color([76,230,0, 0.9]));
fromSearch.sources[0].highlightSymbol = fromGeocodeSymbol;
//set the symbol for the highlighted symbol
fromSearch.search(fromAddress);
//get coordinates of toAddress to pass to use to create polyline for zooming to extent.
fromSearch.on('select-result', function(result){
fromWebCoords = webMercatorUtils.webMercatorToGeographic(result.result.feature.geometry);
fromXCoord = fromWebCoords.x
console.log("inside local from function " + fromXCoord);
});
var toAddress = document.getElementById("toAddr").value
//alert(toAddress);
//highlight symbol
var toGeocodeSymbol = new SimpleMarkerSymbol(
SimpleMarkerSymbol.STYLE_CIRCLE,
20,
new SimpleLineSymbol(
SimpleLineSymbol.STYLE_SOLID,
new Color([85,82,82, 0.5]),
10
), new Color([245,29,29, 0.9]));
toSearch.sources[0].highlightSymbol = toGeocodeSymbol;
//set the symbol for the highlighted symbol
//If multiple results are found, it will default and select the first.
toSearch.search(toAddress);
//get coordinates of toAddress to pass to use to create polyline for zooming to extent.
toSearch.on('select-result', function(result){
toWebCoords = webMercatorUtils.webMercatorToGeographic(result.result.feature.geometry);
toXCoord = toWebCoords.x
console.log("inside local from function " + toXCoord);
});
console.log("Outside local function " + fromXCoord);
console.log("Outside local function " + toXCoord);
}
});
... View more
02-02-2017
07:30 AM
|
0
|
6
|
1655
|
POST
|
I have a webmap that I am using in an application. It is made up of about 150 layers. The layers are not complex, either a single polyline or points (each with less than 50 points). At start all of the layers are turned off. Problem is that it takes close to a minute for the legend to load. So when I use this map in my application it also takes this long. Is there anyway to speed this up? Here is a link to the webmap - http://cdta.maps.arcgis.com/home/webmap/viewer.html?webmap=c168e98d135845cb9fbd91b4b07d3da2 Thanks in advance.
... View more
12-22-2014
08:46 AM
|
0
|
0
|
4082
|
POST
|
I am new to javascript. I have a web page with a web map that is hosted on ArcGIS Online, and a legend that lets the user turn on and off the layers. I want to zoom to the extent of the last layer that was turned on. I am not sure how to get information about the layers in the web map, such as extent. Thanks in advance. Here is my code: <!DOCTYPE HTML> <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"/> <title>CDTA System Map</title> <link rel="stylesheet" href="http://js.arcgis.com/3.9/js/dojo/dijit/themes/claro/claro.css"/> <link rel="stylesheet" href="http://js.arcgis.com/3.9/js/esri/css/esri.css"/> <link rel="stylesheet" href="http://developers.arcgis.com/en/javascript/samples/ags_createwebmapid/css/layout.css"/> <script src="http://js.arcgis.com/3.9/"></script> <script type="text/javascript" src="C:\inetpub\wwwroot\WebMaps\SystemM\jsapi_vsdoc10_v38.js"></script> <script>var dojoConfig = { parseOnLoad: true };</script> <script> require([ "dijit/Menu", "dijit/MenuItem", "dijit/CheckedMenuItem", "dijit/form/CheckBox", "dojo/parser", "dojo/ready", "dijit/layout/BorderContainer", "dijit/layout/ContentPane", "dojo/dom", "esri/map", "esri/urlUtils", "esri/arcgis/utils", "esri/dijit/Legend", "esri/dijit/Scalebar", "esri/dijit/BasemapGallery", "esri/geometry/Extent", "dojo/domReady!" ], function ( Menu, MenuItem, CheckedMenuItem, CheckBox, parser, ready, BorderContainer, ContentPane, dom, Map, urlUtils, arcgisUtils, Legend, Scalebar, BasemapGallery, Extent ) { ready(function () { parser.parse(); arcgisUtils.createMap("c168e98d135845cb9fbd91b4b07d3da2", "map").then(function (response) { var map = response.map; //add the basemap gallery, in this case we'll display maps from ArcGIS.com including bing maps var basemapGallery = new esri.dijit.BasemapGallery({ showArcGISBasemaps: true, map: map }, "basemapGallery"); basemapGallery.startup(); dojo.connect(basemapGallery, "onError", function (msg) { console.log(msg) }); //add the scalebar var scalebar = new Scalebar({ map: map, scalebarUnit: "english" }); var layerList = arcgisUtils.getLegendLayers(response); if (layerList.length > 0) { //create a list of layers // layerList.reverse(); try { dojo.forEach(layerList, function (layer) { var checkBox = new CheckBox( { name: "chk" + layer.title, checked: layer.layer.visible, value: layer.title, onChange: function () { if (layer.layer.featureCollection) { //turn off all the layers in the feature collection even //though only the main layer is listed in the layer list dojo.forEach(layer.layer.featureCollection.layers, function (layer) { layer.layerObject.setVisibility(!layer.layerObject.visible); }); } else { layer.layer.setVisibility(!layer.layer.visible); } // if layer.layer.featureCollection } //onChange }); //var checkBox var layertitle = layer.title; // alert(layer.title + "index is " + layertitle.search("Route1")); switch (0) { case layertitle.search("Route905"): dojo.byId('routesBRT').appendChild(checkBox.domNode); var lbl = dojo.create("label", { innerHTML: layer.title + "</br>", "for": "chk" + layer.title }, dojo.byId('routesBRT')); break; case layertitle.search("Route763"): dojo.byId('commuter').appendChild(checkBox.domNode); var lbl = dojo.create("label", { innerHTML: layer.title + "</br>", "for": "chk" + layer.title }, dojo.byId('commuter')); break; case layertitle.search("Route520"): dojo.byId('express').appendChild(checkBox.domNode); var lbl = dojo.create("label", { innerHTML: layer.title + "</br>", "for": "chk" + layer.title }, dojo.byId('express')); break; case layertitle.search("Route100"): dojo.byId('neighborhood').appendChild(checkBox.domNode); var lbl = dojo.create("label", { innerHTML: layer.title + "</br>", "for": "chk" + layer.title }, dojo.byId('neighborhood')); break; case layertitle.search("Route6"): case layertitle.search("Route1"): dojo.byId('trunk').appendChild(checkBox.domNode); var lbl = dojo.create("label", { innerHTML: layer.title + "</br>", "for": "chk" + layer.title }, dojo.byId('trunk')); break; default: dojo.byId('my-toc').appendChild(checkBox.domNode); var lbl = dojo.create("label", { innerHTML: layer.title + "</br>", "for": "chk" + layer.title }, dojo.byId('my-toc')); } }); } catch (ex) { var s = ex.message; } //try } //(layerList.length > 0) }); }); }); </script> </head> <body class="claro"> <div data-dojo-type="dijit/layout/BorderContainer" <div id="mainWindow" data-dojo-props="design:'headline'" style="width:100%; height:100%;"> <!-- <div id="header" class="shadow roundedCorners" data-dojo-type="dijit/layout/ContentPane" data-dojo-props="region:'top'"> <div id="title"></div> <div id="subtitle"></div> </div>--> <div id="map" class="roundedCorners shadow" data-dojo-type="dijit/layout/ContentPane" data-dojo-props="region:'center'"> <div style="position:absolute; right:20px; top:10px; z-Index:999; background-color:white"> <div data-dojo-type="dijit/TitlePane" data-dojo-props="title:'Switch Basemap', closable:false, open:false"> <div data-dojo-type="dijit.layout.ContentPane" style="width:380px; height:280px; overflow:auto;"> <div id="basemapGallery" ></div></div> </div> </div> </div> <div id="rightPane" class="roundedCorners shadow" data-dojo-type="dijit/layout/ContentPane" data-dojo-props="region:'right'" > <h1 style="margin-left:0px; margin-bottom:0px;font-size:18px;">Routes</h1> <span style="font-size:smaller">---- dashed lines are limited service</span> <!--<div id="legend"></div>--> <div id="my-toc"></div> <div id="routesBRT"> <h2 style="margin-left:0px; margin-bottom:0px;font-size:15px;">BRT Routes</h2> </div> <div id="trunk"> <h3 style="margin-left:0px; margin-bottom:0px;font-size:15px;">Trunk Routes</h3> </div> <div id="neighborhood"> <h3 style="margin-left:0px; margin-bottom:0px;font-size:15px;">Neighborhood Routes</h3> </div> <div id="express"> <h3 style="margin-left:0px; margin-bottom:0px;font-size:15px;">Express Routes</h3> </div> <div id="commuter"> <h3 style="margin-left:0px; margin-bottom:0px;font-size:15px;">Commuter Routes</h3> </div> </div> </div> </body> </html>
... View more
07-02-2014
09:22 AM
|
0
|
1
|
545
|
Title | Kudos | Posted |
---|---|---|
1 | 02-03-2017 12:22 PM |
Online Status |
Offline
|
Date Last Visited |
12-10-2021
07:38 AM
|