jahlxx Posted September 14, 2016 Share Posted September 14, 2016 Hi. I've a problem with this piece of code. It raise an ajax error like this: ajax error missing : after property id. this is the piece of code. thanks for your help: script := script + ' var vertices = ['; qp.first; while not qp.eof do begin script := script + '{lat: ' + floattostr(qp.fieldbyname('latitud').asfloat) + ', lng: ' + floattostr(qp.fieldbyname('longitud').asfloat) + '},'; qp.next; end; // le quito la ultima coma script := copy(script, 0, length(script)-1); script := script + ' ]; ' + 'var poligono = new google.maps.Polygon({' + 'map: googleMap,' + 'paths: vertices,' + 'strokeColor: ''#FF0000'',' + 'strokeOpacity: 0.8,' + 'strokeWeight: 3,' + 'fillColor: ''#86CD31'',' + 'fillOpacity: 0.35' + '});'; end; Link to comment Share on other sites More sharing options...
Sherzod Posted September 14, 2016 Share Posted September 14, 2016 Hi, It would be nice, if there you will show us result of the "script" Best regards. Link to comment Share on other sites More sharing options...
Sherzod Posted September 14, 2016 Share Posted September 14, 2016 It can be a problem: floattostr(qp.fieldbyname('latitud').asfloat in decimal point... Link to comment Share on other sites More sharing options...
jahlxx Posted September 14, 2016 Author Share Posted September 14, 2016 OK. In one test, in standalone server works, but not in isapi module. thanks. Link to comment Share on other sites More sharing options...
jahlxx Posted September 14, 2016 Author Share Posted September 14, 2016 thanks delphi developer. you were right. Link to comment Share on other sites More sharing options...
araujoadanr Posted May 4, 2017 Share Posted May 4, 2017 Someone could help me, I may be doing wrong, copy the example of UniGUI, but I can not find my error. Link to comment Share on other sites More sharing options...
Sherzod Posted May 4, 2017 Share Posted May 4, 2017 Hi, Have you tested with \FMSoft\Framework\uniGUI\Demos\Desktop\GoogleMaps ? Works for you ?! Best regards, Link to comment Share on other sites More sharing options...
araujoadanr Posted May 5, 2017 Share Posted May 5, 2017 If it works, in fact copy the example, for now disable ajax alerts while I investigate that I may have been wrong. Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now