Bing Hub

Bing Search Engine information and help, Microsoft Bing Community

Does anyone here have much experience with working with Bing Maps (i.e. the artist formerly known as Virtual Earth) and KML? I've found that there is a KML implementation on Bing maps, but it has limitations. I.e., when you're working with it, the KML file that you're working with has to be on a publicly-accessible Internet machine (i.e. not an internal dev machine) or else things don't work.

Just curious if anyone else has experience with working with this.

Reply to This

Replies to This Discussion

K - I have more data based on the above issue.

I'm having some issues with using this KML overlay feature, as I'm trying to create a KML file from the collections feature on the public Bing Maps site, and then dynamically serve that KML file back up with some other internal database data.

My issue is more specifically here:

http://blog.reevestech.net/2009/07/using-bing-maps-with-a-kml-feed-...

It's just failing to parse with no error. Any ideas?

Reply to This

Wow - this is a lively place. Quite a discussion I'm having with myself over the past few months! As a note, I was able to get Bing Maps to work with KML properly: http://www.webworldtech.com/casestudy-arlington-county-geospatial-s...

Reply to This

Tad,

Yes, I've read your posts here and there about the Arlington project and dynamic kml files. Interesting indeed!
Am I correct in assuming that Arlington's parcel data is in ERSI shape files and those files were the source for the lat/lons that went into your dynamic kml files?

I'm in the process of porting a kml-driven Google maps mashup to Bing. On think I have noticed is that any type of Bing LoadMap() call displays a map of the USA. This map displays for a second or so before my 'real' map displays. By any chance did you stumble over a way to suppress that USA map?

Here are links that both use the same kml file:

Bing maps (in development)
Google maps

Reply to This

Joseph --

Yes, there is indeed a solution to that, as I ran into the same thing.

On that Arlington KML site, when you do the map.loadMap(), instead of just passing in the defaults like it says in the examples, pass in a latlong object like this:

map.LoadMap(new VELatLong(38.865326, -77.074930), 12 ,'h');

That gives a default place where the map will go to when it loads.

Hope that helps.

Reply to This

Tad,

Yes, I'm going to adopt the approach you recommend and give up on the alternative I was trying. Oops, I should have given you more info in my initial post. Sorry.

I was trying to use the command:
map.ImportShapeLayerData(shape, customize_polygon, 1);

The parm of "1" in the above command will automatically center & zoom the map based on the polygon data in the kml file. However, before I can issue this command the api requires me to first issue a LoadMap() command. That LoadMap() command displays some type of map for a second or so before map.ImportShapeLayerData() changes the map by automatically centering and zooming on my polygon. I was searching for a way to suppress the display of that initial temporary map.

However, the approach you describe is also fine for my app and I have decided to do it that way.

Gee, there sure doesn't seem to be much chatter anywhere from folks actually building Bing apps that read kml data....

Reply to This

Reply to This

RSS

Groups

Blog Posts

KR Travel And Tours

Cebu - Bohol - Cebu Package Tours & Itinerary







KR Travel & Tours is a Sole Proprietorship duly registered with the

Department of Trade & Industry Philippines & City Government
of Lapu-Lapu



Continue

Posted by KR Travel And Tours on July 22, 2010 at 3:30am

Salvador García Bardón

Crisis del clero católico



El teólogo y antiguo prorrector de la UCL Gabriel Ringlet c

Continue

Posted by Salvador García Bardón on July 9, 2010 at 2:24am

Salvador García Bardón

Solidaridad jesuita con los Adivasis


La palabra adivasi significa "los que están ahí desde el principio" y se utiliza en la India para designar a las poblaciones indígenas llamadas en Inglés "tribales".


Continue

Posted by Salvador García Bardón on July 4, 2010 at 10:33am

© 2010   Created by BingHub.   Powered by .

Badges  |  Report an Issue  |  Terms of Service

Sign in to chat!