geolocation - Nokia HERE Map using Google Latitude -


i trying parse , add google latitude kml marker nokia here map. works locally on laptop in ie 9, doesn't add marker in safari 5.7, chrome 27 (locally or on web server). ideas?

kml.parsekml("http://latitude.google.com/latitude/apps/badge/api?user=-1099057214648547758&type=kml"); 

if kml being loaded successful on browsers not others, due browser in question kindly trying prevent cross-scripting domain attack.

you have three options

  • host kml file in same domain javascript reading file - e.g. if own example.com, javascript should hosted on example.com , kml hosted on example.com

  • set kml parser retrieve file example.com , use proxy solution such php example retrieve file elsewhere

  • enable cors on server hosting kml file, , load kml using ajax followed parse() method shown in example

if kml never loaded successfully, should check see whether file valid, , indeed whether html displaying map syntactically correct.


Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

jquery - Fancybox - apply a function to several elements -

An easy way to program an Android keyboard layout app -