标签: bing

Silverlight - 通过C#向Bing Maps中的图钉添加文本

我能够使我的Silverlight Bing地图接受Mousclicks并将它们转换为C#中的Pushpins.现在我想在PushPin旁边显示一个文本作为鼠标越过引脚时出现的描述,我不知道如何做到这一点.有什么方法可以让我做这件事?

这是C#代码:

public partial class MainPage : UserControl
Run Code Online (Sandbox Code Playgroud)

{private MapLayer m_PushpinLayer;

public MainPage()
{
    InitializeComponent();
    base.Loaded += OnLoaded;
}

private void OnLoaded(object sender, RoutedEventArgs e)
{
    base.Loaded -= OnLoaded;

m_PushpinLayer = new MapLayer();
x_Map.Children.Add(m_PushpinLayer);
    x_Map.MouseClick += OnMouseClick;
}

private void AddPushpin(double latitude, double longitude)
{
    Pushpin pushpin = new Pushpin();
    pushpin.MouseEnter += OnMouseEnter;
    pushpin.MouseLeave += OnMouseLeave;
    m_PushpinLayer.AddChild(pushpin, new Location(latitude, longitude), PositionOrigin.BottomCenter);
}

private void OnMouseClick(object sender, MapMouseEventArgs e)
{
    Point clickLocation = e.ViewportPoint;
    Location location = x_Map.ViewportPointToLocation(clickLocation);
    AddPushpin(location.Latitude, location.Longitude); …
Run Code Online (Sandbox Code Playgroud)

.net c# silverlight bing bing-maps

5
推荐指数
1
解决办法
9250
查看次数

Bing地图集成到iPhone应用程序中

是否有可能Bing地图整合到一个原生iPhone应用程序?

iphone bing

5
推荐指数
1
解决办法
1157
查看次数

Bing Maps v8.0 Microsoft.Maps.Location不是chrome中的构造函数

我正在从版本6.3升级Bing Maps Version 8.0.这是我下面的升级代码,它抛出一个错误:

var Points = [new Microsoft.Maps.Location(0, 0), new Microsoft.Maps.Location(0, 0)]
Run Code Online (Sandbox Code Playgroud)

执行后的上述行给出了一个错误说法

"TypeError:Microsoft.Maps.Location不是构造函数"

上述问题发生在Google Chrome浏览器中.但是在Internet Explorer中也能正常工作.

任何建议都有帮助.

提前致谢.

此致,拉胡尔

google-chrome bing bing-maps bing-api

5
推荐指数
1
解决办法
2428
查看次数

Windows Phone上的Bing Map - 将点击事件添加到图钉; 显示更多细节

我有一个使用Bing Map控件的WP Phone应用程序.我有一个对象数组,每个对象都有一个位置.我迭代数组以将引脚放在地图上(见下文).我有一个绑定到每个引脚的触摸事件,允许用户点击引脚开始动作.

现在 - 我希望,在点击时,显示与该引脚相关的对象的信息,以便在文本框中显示.如何从与点击/单击的图钉对应的数组中检索对象?

foreach (wikiResult result in arrayResults)
{
    double lat = double.Parse(result.Latitude, CultureInfo.InvariantCulture);
    double lng = double.Parse(result.Longitude, CultureInfo.InvariantCulture);
    statusTextBlock.Text = result.Latitude + "  " + result.Longitude + "  " + lat + "  " + lng;

    GeoCoordinate d = new GeoCoordinate(lat, lng);

    Pushpin pin;
    pin = new Pushpin();
    pin.Location = d;
    pin.Content = result.Name;
    pin.MouseLeftButtonUp += new MouseButtonEventHandler(pin1_MouseLeftButtonUp);
    myMap.Children.Add(pin);
}

void pin1_MouseLeftButtonUp(object sender, MouseButtonEventArgs e)
{
    //display the content from the object in a text box …
Run Code Online (Sandbox Code Playgroud)

c# bing bing-maps windows-phone-7

4
推荐指数
1
解决办法
4824
查看次数

Bing地理编码与Google地理编码的使用限制?

我知道谷歌地理编码api在开始返回REQUEST_DENIED之前每天有2,500次点击限制.bing有多少人?我听说它是​​无限的,但我确认无法确认.

geocoding bing

4
推荐指数
1
解决办法
3万
查看次数

如何在Java中使用Bing搜索API

我需要从Bing中提取搜索结果.有没有可用的Java代码来实现这一目标?

java bing

4
推荐指数
1
解决办法
5101
查看次数

使用JSON结果示例Bing搜索HTTP请求?

请帮助确定Bing搜索请求的参数,以JSON格式返回结果.文档"迁移Bing Search API应用程序"告诉我们:"要使用Windows Azure Marketplace验证Bing Search API请求,您必须获取帐户密钥.此身份验证模式将替换Bing Search API 2.0中使用的AppID."

另一方面,同一文档提供了以下仍然使用Appid的示例:http://api.search.live.net/xml.aspx Appid = App&query = datata&sources = web&count = 2

以下请求:curl"https://api.datamarket.azure.com/Data.ashx/Bing/SearchWeb/v1/Web?Query=%27xbox%27&$top=50&$format=json$accountKey=TPP .. ..VRTWiq4 = $的appid =概念创始者"

导致以下错误:不支持您提供的授权类型.仅支持Basic和OAuth

请举例说明可以在CURL命令行中使用的搜索Bing URL,以获取JSON格式的搜索结果.

json bing

4
推荐指数
2
解决办法
1万
查看次数

Azure Bing Web搜索因Query搜索而失败

我正在使用Odata4j.当我尝试使用我的查询执行简单的Web搜索时,在代码的最后一行获取以下exeception:

PS:如果你觉得这很有帮助,请投票.谢谢

java.lang.RuntimeException: Expected status OK, found Bad Request. Server response:
Parameter: Query is not of type String
    at org.odata4j.jersey.consumer.ODataJerseyClient.doRequest(ODataJerseyClient.java:165) 
Run Code Online (Sandbox Code Playgroud)

这是我的代码:

ODataConsumer consumer = ODataConsumers
                .newBuilder("https://api.datamarket.azure.com/Bing/Search/v1/")
                .setClientBehaviors(OClientBehaviors.basicAuth("accountKey", "My account key here"))
                .build();


  System.out.println(consumer.getServiceRootUri()+consumer.toString());

  OQueryRequest<OEntity> oQueryRequest = consumer.getEntities("Web").custom("Query", "Search text criteria");


    System.out.println("oRequest"+oQueryRequest);

        Enumerable<OEntity> entities  = oQueryRequest.execute();
Run Code Online (Sandbox Code Playgroud)

azure bing

4
推荐指数
1
解决办法
920
查看次数

如何使用http url显示更多来自Duckduckgo/Bing的图像?

DuckduckGo/Bing上的默认图像搜索返回35张图像.

例如https://duckduckgo.com/?q=Temple+of+the+Golden+Pavilion&iax=1&ia=images

Bing的相同内容,请参阅http://www.bing.com/images/search?q=Temple%20of%20the%20Golden%20Pavilion

有没有办法让它使用http网址返回更多图像?

或者,如果不可能,有没有办法通过http网址转到接下来的35张图片?


我检查了他们的语法页面,但没有关于图像搜索的信息:https://duckduckgo.com/params

我也试过&count=1000但它仍然返回35张图片:https://www.bing.com/images/search?q = times + square&count = 100

url search-engine image bing duckduckgo

4
推荐指数
1
解决办法
7381
查看次数

使用 node-soap 连接 Bing Ads API

我正在尝试使用 node-soap 连接到 bing ads 肥皂 api。我已按照 bing文档中的建议创建了请求。但每次我尝试连接时,响应都会显示无效凭据(错误代码 - 105)消息 - 身份验证失败。提供的凭据无效或帐户处于非活动状态。

我能够使用 bing 提供的示例 C# 代码来验证 API。因此,很明显凭证/令牌工作得很好。

有没有办法通过我的方法或我的节点代码来识别问题。

soap.createClient(url, function (err, client) {
    if (err) {
        console.log("err", err);
    } else {
        client.addSoapHeader({
            'AuthenticationToken': '<AuthenticationToken>',
            'DeveloperToken': '<DeveloperToken>',
            'CustomerId': '<CustomerId>',
            'CustomerAccountId': '<CustomerAccountId>',
        });        
        client.SubmitGenerateReport(args, function (err, result) {
            if (err) {
                console.log("err", err.body);
            } else {
                console.log(result);
            }
        });
    }
});
Run Code Online (Sandbox Code Playgroud)

PS:Bing 文档很糟糕。堆栈溢出万岁!

soap bing node.js node-soap bing-ads-api

4
推荐指数
1
解决办法
1465
查看次数