отслеживание движение мыши по карте

0 голосов
спросил 23 Март, 10 от Corvell (1,900 баллов) в категории Программные продукты Esri
подскажите, как можно отследить движение мыши по карте, чтобы, к примеру, есть два слоя, один с домами, другой еще с чемнибудь, если курсор попадает на дом, то он меняет вид.

если просто добавлять свойство mousemove, то передаются координаты указателя по страничке, а как привязать к слою?

4 Ответы

0 голосов
ответил 23 Март, 10 от Corvell (1,900 баллов)
вопрос исчерпан, но появился другой.

silverlight, web

используется indentifytask, туда передаются параметры(extent, mappoint ... ), щелкая по карте указателем, этот метод выводит список слоев, которые попадают в эту точку, где произошел щелчок. если слой состоит из точек (point), то чтобы точка идентифицировалась, нужно попасть в ее координаты (х,у), а т.к. условный знак картинка, хотелось, чтобы точка идентифицировалась, если щелкать в какихто пределах от ее координаты. Как это можно осуществить?
0 голосов
ответил 23 Март, 10 от TDenis (42,620 баллов)
private void Map_MouseClick(object sender, ESRI.ArcGIS.Client.Map.MouseEventArgs e)
{
    ESRI.ArcGIS.Client.Geometry.MapPoint clickPoint = e.MapPoint;
    ESRI.ArcGIS.Client.Tasks.IdentifyParameters identifyParams = new IdentifyParameters()
    {
        Tolerance = 3,
        Geometry = clickPoint,
        MapExtent = _map.Extent,
        Width = (int)_map.ActualWidth,
        Height = (int)_map.ActualHeight,
        ReturnGeometry = true,
        LayerOption = LayerOption.all,
        SpatialReferenceWKID = clickPoint.SpatialReference.WKID,
    };

    ...
    identifyTask.ExecuteAsync(identifyParams, null);
}
0 голосов
ответил 23 Март, 10 от Corvell (1,900 баллов)
спасибо
0 голосов
ответил 23 Март, 10 от fulan_lily (300 баллов)

world of warcraft power leveling What is nature? It’s everything that exists in the world independently of people, world of warcraft power leveling   such as pants and animals, earth and rocks,  and the weather. Now more and more people are focusing  on the nature. It is no doubt that the nature is important to every human being. No nature, no life. Because of the supplies of the nature, we have lived happily for a long time. And we started to gain every thing available from the nature. And this lasted so long a time. Today, people have discovered that the nature around is getting worse and worse. What is threatening the nature? Air and water pollution,  overharvesting of plant and animal species, overpopulation and so on. Overpopulation is the biggest source of pollution. Let’s take overpopulation as an example.wow Power Leveling,

 wow power leveling  What does overpopulation feel,  like? When we move slowly through the city in a tazi. When we enter a crowded slum district. When the temperature is high and when the air is thick with dust and smoke. The streets are crowded with people. The streets seem alive with people. People eating. People washing. People talking. People sleeping. People visiting each other, arguing and screaming. People relieving themselves. People pushing their hands through the taxi windows, begging. People leading animals. People, people, people, people. As we drive slowly through the crowd, sounding the taxi’s horn, the dust, heat, noise and cooking fires made it like a scene from hell! I admit,frightening. To the nature, overpopulation is a big problem. More people, more pollution. And the big population is threatening the nature every second. The rapid rise in world population is not creating problems only for the developing countries. The whole world faces the problem that raw materials are being used up at an increasing rate and food production can not keep up with the population increase. People in rich countries make the heaviest demands on the world’s resources, its food, fuel and land, and cause the most pollution. A baby born in the United States will use in his lifetime 30 times more of the world’s resources than a baby born in India. Unless all the countries of the world take united action to deal with the population explosion there will be more and more people fighting for a share of less and less land, food and fuel, and the future will bring poverty, misery and war to us all.wow gold,

  wow gold   wow power leveling, For most of the developing countries, it is a good idea to control the population growth. For example, China has carried out birth control for years. And this plan has a great effect on the world population., If the population continues to increase, if the air and water continue to be polluted, if we don’t do something to protect wild-plant and wildlife species will be declining. Species and biological communities have difficulty adapting to change. Economic opportunities and the quality of life of future generations are also put at risk. By protecting nature, we protect ourselves. Let’s unite together, hand in hand we stand all across the land.
    wow power leveling wow gold,We can make this world in which to live. Hand in hand. Control the population growth. Take good care of our nature.wow gold

Добро пожаловать на сайт Вопросов и Ответов, где вы можете задавать вопросы по GIS тематике и получать ответы от других членов сообщества.
...