Hi there, I have been following a tutorial on google maps ( http://code.google.com/apis/maps/articles/mvcfun.html) which has a map that works like this ( http://code.google.com/apis/maps/articles/mvcfun/step6.html).
This is all fine. When I, however, attempt to control either the latitude, longitude, or distance of the circle by using getelementfromid - the radius widget breaks and I've got no idea why. This can be seen at http://test-psi-alpha.appspot.com/. At the moment I my python (app engine) script is writing a distance to a textbox which in turn should get called by the javascript getelementbyid bit and thus render a map with a circle widget with (in this case) a radius of 10: *Python* class MainHandler(webapp.RequestHandler): def get(self): args={} args["latitude"]=22 args["longitude"]=22 args["distance"]=10 doRender(self,'index.html', args) def post(self): args={} latitude = self.request.get("latitude") longitude = self.request.get("longitude") distance = self.request.get("distance") args["latitude"]=latitude args["longitude"]=longitude args["distance"]=distance doRender(self,'index.html', args) *HTML* Latitude: <input type="text" id="latitude" name="latitude" value={{latitude}}> Longitude: <input type="text" id="longitude "name="longitude" value={{longitude}}> Distance: <input type="text" id="distancevar" name="distancevar" value={{distance}}> * * *Javascript * the original line setting the distance of the circle was: this.set('distance',10); // this is what Which I changed to: this.set('distance', distancevar); this.set('distance',distancevar This is a seemingly simple issue, but it's been bugging me for a couple of weeks now and I cannot seem to work around it. Any ideas would be very much appreciated. -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.
