Have a look at this arguments and try to change the variable long function sgCityNHMap(country,city,cityName,lat,long)
var latlng = new google.maps.LatLng(lat,long); long is reserved word in Javascript. On Jul 16, 10:28 am, "Hugh H." <[email protected]> wrote: > I decided to do a test, I cleaned the common.js file deleting > everything: no markers, no polygons; ust the code to show the map: > > var map; > var image; > var infoWin; > > // Shopping Guide - City neighborhoods > var neighborhoods = new Array(); > var points = new Array(); > var nhMBR = new Array(); > var nhCentroid = new Array(); > var minLat; > var maxLat; > var minLng; > var maxLng; > var opacityOut = 0.4; > var opacityOver = 0.2; > > function sgCityNHMap(country,city,cityName,lat,long) { > var mapTypes = new Array(google.maps.MapTypeId.ROADMAP, > google.maps.MapTypeId.HYBRID); > var latlng = new google.maps.LatLng(lat,long); > var myOptions = { > zoom: 12, > center: latlng, > mapTypeId: google.maps.MapTypeId.ROADMAP, > mapTypeControl: true, > mapTypeControlOptions: {style: > google.maps.MapTypeControlStyle.DROPDOWN_MENU, mapTypeIds: mapTypes} > }; > map = new google.maps.Map(document.getElementById("city_canvas"), > myOptions); > > } > > But the error continues appearing!? I must confess I'm totally lost/ > blind -- 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.
