none
Sample code for Microsoft Maps RRS feed

  • Question

  • How can I see the run of the examples in your website?

    like this example:

    https://msdn.microsoft.com/en-us/library/aa907682.aspx

    I need to see how does it look if run it.

    I tried to copy and past the code and make the html files but I have problem and I can not see the correct run.

    Thanks


    Friday, November 16, 2018 10:12 PM

Answers

  • The GeoXML module in Bing Maps V8 supports GeoRSS. Here is a code sample: https://www.bing.com/api/maps/sdk/mapcontrol/isdk/geoxmlreadfromurl

    That said, I highly recommend you use GeoJSON. XML formats and JavaScript is a pain and slow. JSON based data is faster to work with and creates a smaller file size. I haven't come across any customers using GeoRSS in years. GeoJSON is the standard used these days for web apps, even surpassing KML in popularity. 

    Talk about a blast from the past. That article is actually for version 4 of Virtual Earth (old name for Bing Maps). Version 4 was replaced 12 years ago. Surprised that doc is online still, likely slipped through the cracks of time. 

    • Proposed as answer by Ricky_Brundritt Thursday, November 22, 2018 3:30 PM
    • Marked as answer by laleh Moradi Thursday, November 22, 2018 3:36 PM
    Thursday, November 22, 2018 3:30 PM

All replies

  • Hi Laleh,

    THe 6.3 Ajax control is no longer available.  Also the next version, 7 is also deprecated.  So try out Version 8 at https://www.bing.com/api/maps/sdkrelease/mapcontrol/isdk/Overview and let me know if you have any questions.

    Note: for samples you can download and use with your own Bing Maps key, look at http://bingmapsv8samples.azurewebsites.net/

    Sincerely,

    IoTGirl


    Saturday, November 17, 2018 1:08 AM
    Owner
  • Thanks IoTGirl. If I want to see a sample similar the old one that I asked can you help me that in  version 8? I could not find something similar to that show and hide layers of pushpins on the map.

    Thanks,

    Laleh

    Monday, November 19, 2018 3:36 PM
  • Hi Laleh,

    You can see how to add an remove pushpins at the first link given above.  Choose "Getting Started" in the left menu then "PushPins". A you could not find it, here is a sample on that page that adds and removes pushpins https://www.bing.com/api/maps/sdkrelease/mapcontrol/isdk/deletepushpins

    Sincerely,

    IoTGirl

    Monday, November 19, 2018 4:12 PM
    Owner
  • I don't want to remove the push pins. I want to make them on and off the map by a button in my html page.

    I think it is better if I ask my question this way:

    I have 10 Lat,Long and I want to put these 10 pushpins in 3 different layers or collections. How should I do that? for example these 10 pins below, how can I divide them in 3 different layers or collection of pins?

     addPinToCollection(new Microsoft.Maps.Location(65.479346, -126.842480), "Norman Wells, NT");

    addPinToCollection(new Microsoft.Maps.Location(68.371608, -134.572785), "Mackenzie Delta, NT");
    addPinToCollection(new Microsoft.Maps.Location(64.455944, -114.211718), "Wekweeti, NT");
    addPinToCollection(new Microsoft.Maps.Location(65.111763, -111.601145), "Daring Lake, NT");
    addPinToCollection(new Microsoft.Maps.Location(64.734648, -124.924184), "Smith Creek, NT");
    addPinToCollection(new Microsoft.Maps.Location(60.956568, -117.416085), "Kakisa, NT");
    addPinToCollection(new Microsoft.Maps.Location(61.386874, -113.694630), "Fort Resolution, NT");
    addPinToCollection(new Microsoft.Maps.Location(58.716453, -111.321585), "Peace-Athabasca Delta, AB");
     addPinToCollection(new Microsoft.Maps.Location(50.660148, -105.507807), "Buffalo Pound, SK");

     addPinToCollection(new Microsoft.Maps.Location(49.365300, -98.346253), "Tobacco Creek, MB");

    Thanks, 

    Laleh


    Tuesday, November 20, 2018 7:21 PM
  • Hi Laleh,

    There are sections on layering further down on the left menu.  Please do explore to see which would work best for you.  This might be a good one for you to start with https://www.bing.com/api/maps/sdkrelease/mapcontrol/isdk/addmultiplelayeritems

    Sincerely,

    IoTGirl

    Tuesday, November 20, 2018 11:23 PM
    Owner
  • Thanks IoTGirl. I have seen these and read them carefully but it is confusing for me since I do not want add 10 random pins and all of the examples have generated random pins. I have the exact locations and want to add my exact locations not generating random pins. Is there anybody that can answer this question. I have been stuck in this for several days and can not find any way out.

    Wednesday, November 21, 2018 3:02 PM
  • Hello Laleh,

    Instead of looking forever an 100% exact programming example match, I suggest you to simply search for... a true programmer around you to answer your specific requests now and in the future too !

    Cheers,

    Germain


    • Edited by VEHICALL Thursday, November 22, 2018 9:32 AM
    • Proposed as answer by VEHICALL Thursday, November 22, 2018 9:33 AM
    • Unproposed as answer by VEHICALL Thursday, November 22, 2018 3:49 PM
    Thursday, November 22, 2018 9:31 AM
  • The GeoXML module in Bing Maps V8 supports GeoRSS. Here is a code sample: https://www.bing.com/api/maps/sdk/mapcontrol/isdk/geoxmlreadfromurl

    That said, I highly recommend you use GeoJSON. XML formats and JavaScript is a pain and slow. JSON based data is faster to work with and creates a smaller file size. I haven't come across any customers using GeoRSS in years. GeoJSON is the standard used these days for web apps, even surpassing KML in popularity. 

    Talk about a blast from the past. That article is actually for version 4 of Virtual Earth (old name for Bing Maps). Version 4 was replaced 12 years ago. Surprised that doc is online still, likely slipped through the cracks of time. 

    • Proposed as answer by Ricky_Brundritt Thursday, November 22, 2018 3:30 PM
    • Marked as answer by laleh Moradi Thursday, November 22, 2018 3:36 PM
    Thursday, November 22, 2018 3:30 PM
  • Thanks so much Ricky, that was the answer I was looking for.
    Thursday, November 22, 2018 3:37 PM