Select to view content in your preferred language

change highlight or add new image for webmap with javascript

734
4
Jump to solution
02-17-2022 10:13 PM
by Anonymous User
Not applicable

Hi,

I wanna add dynamic image for my project. Let me explain you ;

TarikBayram_0-1645163869335.png

if I click on the current position of the mouse on the left screen a blue image appears. But I wanna blue image create just on feature.I didn't see any post in ArcGIS API for javascript document about this topic. Maybe I can try change highlight options and make my blue image.

I will be happy if you can help me about this .

 

Tags (2)
0 Kudos
1 Solution
4 Replies
BlakeTerhune
MVP Regular Contributor

Try setting the MapView highlightOptions.

const view = new MapView({
  map: webmap,
  container: "viewDiv",
  highlightOptions: {
    color: [255, 255, 0, .9],
    haloOpacity: 0.8,
    fillOpacity: 0.5
  }
});

 

0 Kudos
by Anonymous User
Not applicable

Thank you for answering my question. I'm looking for something different.Can I change the highlight image? Can I put the blue image instead of the default image ?

blueprint.jpg

0 Kudos
by Anonymous User
Not applicable

I can actually click on the feature layer. In this way, I can highlight my points. Can I make a system that opens on the map when I click with this method?

TarikBayram_0-1645434874483.png

 

What I want to do is actually like this;

TarikBayram_1-1645435218361.png

 

0 Kudos