This is why I hate programming
I have to modify the Google maps component for Joomla to get this thing to work properly, but I am about to just smash my computer instead. I am posting a value to the form to display a certain state.
Update #2: If you are using Google maps component for Joomla and you need to have something that modifies the choices selected you first need to set dynamic xml in the advanced section of the Google maps settings. Then you will need to add your code in a couple places, one being pureXml2 function. The thing it is built using a url so you need to go to showWrap function where the url starts “index2.php?option=com_google_maps&task=xml2&” and then add in the code to build the entire URL. You cannot add GET or POST variables that are being pulled from the main maps page since the XML is pulled from a url. Once you have the parameters in the URL and your pulls for the get variables in the pureXml2 function go to the xmlBuilder function where the SQL is actually done and add in your edits. It was a hassle to track all that down trust me. I think it should have taken me a little less time than it did but it was a hassle no matter what.





