i want to know, how to combine 2 basemap layers to make a new one for satellite and topo, where i want topo to be on top of satellite, and i want to change color of the lines to red or any other color for these kind of topo lines.
I got a link on older version Multiple Layers for 1 basemap . Do it work as my needs. bcz it include basemaplayer also
> you can only have one basemap at a time
True but you can add multiple layers to that basemap. So you'd first add the imagery to the baselayers, and then next add a layer that just has the contour lines on top. It doesn't have to be added as an operational layer (the split between operational and baselayers is really just about being able to easily switch basemaps without touching the operational layers)
I didn't understand, can u please give me any example, As i do not use any feature layer, just having graphics layer.
Like you said i have a basemap of satellite for example, and i want those lines to be added, but i don't know how???
Also can i change color of topo lines???
I want to make new basemap satellite topo
This is my code below
var topoBtn =domConstruct.toDom("<div class='map-button esri-component esri-widget--button esri-widget topo mapbtncolor' role='button' title='topo'>TOPO<span aria-hidden='true' role='presentation'></span></div>") ;
var satelliteBtn = domConstruct.toDom("<div class='map-button esri-component esri-widget--button esri-widget sat basmapcolor' id='satt' role='button' title='sattelite'>SATELLITE<span aria-hidden='true' role='presentation'></span></div>");
webmap.basemap = basemap;
Morten Nielsen is right and you can indeed combine two layer to create a custom basemap, here's a sample code:
and created this code, but it doesn't work out. I don't know where i am gettig wrong. Can any one please help me out.
I don't think it will work with the topo layer that you are using. You need to find a layer that just has the contour lines for the Topo, try your code with the following layers (you should see a label layer on top of a imagery one):