On Aug 12, 3:27 pm, Kesuke <nick_dai...@hotmail.com> wrote: > I was just taking another look at this and there is another problem > with that setRedye function, the (document.dir.redye_check.checked) > throws up an "Unable to get value of the property 'checked': object is > null or undefined" error. I'm not sure why that is, I would have > thought it should work but two guesses are it either doesn't like the > underscore in redye_check (I don't usually use underscores in element > names) OR it wants you to stipulate the full question like; > > if (document.dir.redye_check.checked == true) { ... } else { ... } > > Try using the script debug console. > > On Aug 10, 11:48 pm, Tyler Durden <peter.ni...@googlemail.com> wrote: > > > Hi there, > > > i use a custom tile set for my projection, which is the result of a > > rotor router simulation. > > Example:http://rotor-router.mpi-inf.mpg.de/Peter/50Mio/ > > > But the given colorscheme isnt that pretty. Thats why there is a php > > script which redyes the tiles live and returns them to the google api. > > With a maptype for the original and one for the redyed tiles it works > > fast and without problems. So far so good. > > > Now i added a menu on the right side to set custom color values. > > For every type of simulation (ee. lrdu) i here use a maptype and added > > a bool variable "redye" in my get_tile function, to set where to get > > the tiles from: orignal tiles from the server or redyed tiles from > > the php script. > > Example:http://rotor-router.mpi-inf.mpg.de/Peter/1Bio/ > > > My problem in this version is the triggering of a refresh. > > When someone sets the redye checkbox the color change should be > > instantly. But the MapsApi doesn't recognizes the change of the bool > > variable and therefor doesnt change it. First i have to zoom or do an > > event, which forces a refresh of the visible tiles. > > > How can i force this refresh in the setRedye() function... i tried to > > trigger an event after the bool value is changed by the setRedye() > > function(example: projection_changed) but nothing happens ... i tried > > to register the custom functions within the maps event handling but > > nothing happens, it only makes the code unnessary bigger ... i even > > tried to zoom in and out (hackaround) to force a refresh, only zoom in > > or zoom out works ... both together do not trigger an event ... > > > can someone plz help me? > > > additional tips are welcome. > > > greetz > > > Peter
-- 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 google-maps-js-api-v3@googlegroups.com. To unsubscribe from this group, send email to google-maps-js-api-v3+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.