none
is it possible to load a kml file in bing maps RRS feed

  • Question

  • i have some kml files i would like to load for  users i am currently using v7 but i am in the process of migration to v8

    is this a complicated process?

    Thursday, August 11, 2016 1:42 AM

Answers

  • There are a number of different ways to do this. Some more complicated then the others. The easiest method is to upload your KML file to the Bing Spatial Data Services using the Bing Maps portal. Here are the steps:

    1. Log into your Bing Maps account at https://www.bingmapsportal.com/
    2. Go to Data Sources -> Upload Data
    3. Fill out the form, select the Publish without geocoding box as this will allow you to skip the step of having to press another button later to publish the data source.
    4. Once complete, go to Data Sources -> Data Source Information
    5. Find the data source you just created. You will need the Query URL.
    6. Using Bing Maps V8, use the Query API in the Bing Spatial Data Services module. This will allow you to query your data in the data source (find near by, find in bounding box, find along route, intersection test, find by property). Here are some samples and documentation:
      http://www.bing.com/api/maps/sdk/mapcontrol/isdk#sdsNearbySearch+JS
      https://msdn.microsoft.com/en-US/library/mt750554.aspx
      https://msdn.microsoft.com/en-US/library/mt712849.aspx

    This method is fairly easy, and provides you with very powerful searching capabilities with your data, but it does have a few limitations;

    • Unless you have an enterprise account (paid license), data sources are limited to 50 shapes.
    • Style information gets stripped out of the KML file. However depending on the format of the KML file, this information may be stored in columns of the data source.

    There are other methods but most of them require a lot of work. We plan to add a KML module to Bing Maps V8 in the future. KML in general has become a lot less popular in recent years as more efficient spatial file formats such as GeoJSON (supported in V8) and TopoJSON (being considered for V8) have started to become more popular.


    [Blog] [twitter] [LinkedIn]

    • Proposed as answer by Ricky_Brundritt Thursday, August 11, 2016 3:46 PM
    • Marked as answer by Ronc1 Thursday, August 11, 2016 11:08 PM
    Thursday, August 11, 2016 3:46 PM

All replies

  • There are a number of different ways to do this. Some more complicated then the others. The easiest method is to upload your KML file to the Bing Spatial Data Services using the Bing Maps portal. Here are the steps:

    1. Log into your Bing Maps account at https://www.bingmapsportal.com/
    2. Go to Data Sources -> Upload Data
    3. Fill out the form, select the Publish without geocoding box as this will allow you to skip the step of having to press another button later to publish the data source.
    4. Once complete, go to Data Sources -> Data Source Information
    5. Find the data source you just created. You will need the Query URL.
    6. Using Bing Maps V8, use the Query API in the Bing Spatial Data Services module. This will allow you to query your data in the data source (find near by, find in bounding box, find along route, intersection test, find by property). Here are some samples and documentation:
      http://www.bing.com/api/maps/sdk/mapcontrol/isdk#sdsNearbySearch+JS
      https://msdn.microsoft.com/en-US/library/mt750554.aspx
      https://msdn.microsoft.com/en-US/library/mt712849.aspx

    This method is fairly easy, and provides you with very powerful searching capabilities with your data, but it does have a few limitations;

    • Unless you have an enterprise account (paid license), data sources are limited to 50 shapes.
    • Style information gets stripped out of the KML file. However depending on the format of the KML file, this information may be stored in columns of the data source.

    There are other methods but most of them require a lot of work. We plan to add a KML module to Bing Maps V8 in the future. KML in general has become a lot less popular in recent years as more efficient spatial file formats such as GeoJSON (supported in V8) and TopoJSON (being considered for V8) have started to become more popular.


    [Blog] [twitter] [LinkedIn]

    • Proposed as answer by Ricky_Brundritt Thursday, August 11, 2016 3:46 PM
    • Marked as answer by Ronc1 Thursday, August 11, 2016 11:08 PM
    Thursday, August 11, 2016 3:46 PM
  • Ricky

     i want to thank you for all your assistance i have asked quite a few questions and you have always responded within 24 hours i am impressed thanks again people like you make it easier for us programmers that are venturing into new areas. 

    sincerely thank you

    Ron

    Thursday, August 11, 2016 11:11 PM
  • Ricky

     one more question if i may

    if i get another key for another app i am working on is each key allowed 125000 billable transactions a year

     also if i upload a kml file that is selectable per app correct

    thanks again Ron

    Friday, August 12, 2016 12:12 AM