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.
basically read images geotag , convert tag dms dd can used google maps.
there 3 problems:
- you missing
apply
in line 49 - you
apply
ing array 1 item being string while function applying expects 4 parameters - at line 43
longcombinedready
jquery object
Comments
Post a Comment