Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8866709
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T16:51:39+00:00 2026-06-14T16:51:39+00:00

I am using a specific map with different layers and elements on it. The

  • 0

I am using a specific map with different layers and elements on it. The map is created using arcGis and it creates an <svg></svg> label with all the elements inside (building, roads, etc.).

My question is, could I iterate through the different objects of the map inside the frame with javascript/dojo?

The main idea is to change the color of a building or a square inside the map client-side. Any idea?

HTML:

Javascript:

basemap = new esri.layers.ArcGISTiledMapServiceLayer("http://...", {});
map.addLayer(basemap);

Many thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T16:51:40+00:00Added an answer on June 14, 2026 at 4:51 pm

    I have managed to create an empty query that can iterate through all the elements, something like this:

          //initialize query task
          queryTask = new esri.tasks.QueryTask("https://...");
    
          //initialize query
          query = new esri.tasks.Query();
          query.returnGeometry = true;
          query.outFields = ["SPAT_NAME"];
          query.where = "1=1";
    
          //execute query
          queryTask.execute(query,function(results){
            console.log(results);
            console.log(elements);
            for (var i=0, il=results.features.length; i<il; i++) {
              var featureAttributes = results.features[i].attributes;
              //do stuff
              }
            }
          });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm running dozens of map reduce jobs for a number of different purposes using
I'm using a specific game making framework but I think the question applies to
I am trying to build an XML document using a specific namespace. The final
I'd like to exclude Internet Explorer from using a specific CSS class. Is this
Should a value always be stored in a database using a specific unit (e.g.
Basicaly I want to format a Date object using a specific pattern and the
I need to write a Double value in a numeric cell using a specific
I'm trying to run a .bat file in java, but I'm using the specific
I'm using Mysqli OO to search the database for 2 specific values using the
I'm using svn:externals and I've specified a specific revision using the SVN1.5+ format ,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.