javascript - Convert a string with function calls to an array -


i need convert function call simple array[] it's not working reason.

here's fiddle

     var longcombinedready = $('#geoimagelat').val(exifobject.gpslatitude + "," + "'" + exifobject.gpslatituderef + "'")   var latcombinedready = exifobject.gpslongitude + "," + "'" + exifobject.gpslongituderef + "'"       //an attemp take values , convert them array doesn't work.       var longcombined = [longcombinedready];       var latcombined = [latcombinedready]; 

i've commented out in fiddle here's image geocoords if don't have 1 testing.

test geotag image

basically read images geotag , convert tag dms dd can used google maps.

there 3 problems:

  • you missing apply in line 49
  • you applying array 1 item being string while function applying expects 4 parameters
  • at line 43 longcombinedready jquery object

Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -