I couldn't get your map to display any markers in FF or IE7 or IR8. There were a few bit of code needed tidying up and it works now in all browsers i've tried:
http://googlemapsapi.martinpearman.co.uk/user_maps/trpc.org/clustermarker_resperm.php selectExample() being used before it was defined was an error picked up by JSLint. http://www.jslint.com/ I've commented most changes i made - and removed some unused variables too. The page will throw an error if you select a year from the list - that's just my site's 404 error page failing to parse as a JSON object. (I only copied resperm_2008.txt to my server). Martin. On 23 June, 02:50, "Jeff Holcomb" <[email protected]> wrote: > Calling all Google Mappers. > > I am using the Cluster Marker and HtmlControl javascript files I > downloaded from Martin Pearman's > sitehttp://googlemapsapi.martinpearman.co.uk/home.php. Thanks Martin they > are really useful! I have ~2000 markers which I am reading in via JSON > files which were translated from Excel spreadsheets using the SIMILE > Babel website from MIThttp://service.simile-widgets.org/babel/. The > JSON file is structured as follows: > > { > > "items" : [ > > { > > "LONG" : > -122.785729938, > > "ADDRESS" : "7106 > 47TH AVE NE OLYMPIA, WA 98506", > > "ISSUE_PAR" : > "52970000900", > > "LAT" : > 47.099699676, > > "ISSUEDAT" : > "1|14|2008", > > "type" : "Item", > > "BPTYPE" : "SF", > > "label" : "1240", > > "DWLLNGS" : 1, > > "I_JURIS" : "CTY" > > }, ... etc. > > The issue I am running into is that while the site works as I am > expecting for IE 8 when I try loading it in Firefox 3.0 . None of the > markers will draw, my map is not drawing with the expected center and > zoom level and I get the following message in Firefox's error console. > > Error: not well-formed > > Source File: > file:///P:/Regional/BuildingPermits/Permits2009/website/txt/resperm_2008 > .txt > > Line: 1, Column: 1 > > Source Code: > > { > > This being my first attempt working with JSON and being a novice java > script programmer. I am at a loss trying to figure out what is > happening. Do any you have advice on how to structure my JSON file to be > well formed and why Internet Explorer doesn't have a problem with the > JSON but Firefox does? > > Here is a link to the > map.http://www.trpc.org/external/programs/resperm/clustermarker_resperm.php > . Thanks for all your help. > > Jeff Holcomb, GIS Analyst > Thurston Regional Planning Council > 2424 Heritage Court SW, Suite A > Olympia, WA 98502 > > Phone: (360) 741-2520 > Receptionist: (360) 956-7575 > Fax: (360) 956-7815 > Website: www.trpc.org<http://www.trpc.org/> --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Maps API" 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-API?hl=en -~----------~----~----~----~------~----~------~--~---
