Hi Andrew,
I changed the code to
if (point) {
map.setCenter(point, 13);
var marker = new GMarker(point);
map.addOverlay(marker);
marker.openInfoWindowHtml(address);
} else {
alert(address + point + " not found");
}
I still get the same "invalid label" error.
unfortunately i don't own a hosting so I am doing this locally... and
don't have means of showing it online.
I have a feeling it has something to do with the response because it's
pointing to the json that is returned:
{
"name": "Flushing NY 11355 USA",
"Status": {
"code": 200,
"request": "geocode"
},
"Placemark": [ {
"id": "p1",
"address": "Flushing, NY, USA",
"AddressDetails": {"Country": {"CountryNameCode":
"US","CountryName": "USA","AdministrativeArea":
{"AdministrativeAreaName": "NY","AddressLine":
["Flushing"]}},"Accuracy": 4},
"ExtendedData": {
"LatLonBox": {
"north": 40.7810730,
"south": 40.7534090,
"east": -73.8200990,
"west": -73.8383710
}
},
"Point": {
"coordinates": [ -73.8234620, 40.7646110, 0 ]
}
} ]
}
it points to the "name": "Flushing NY 11355 USA", and says invalid
label... (in IE it says missing ";" )
even though it is returning the json... point is null?? i don't quite
understand what is going on here...
On Jan 13, 11:49 am, "warden [Andrew Leach - Maps API Guru]"
<[email protected]> wrote:
> On Jan 13, 4:34 pm,aks9800<[email protected]> wrote:
>
> > hey guys,
> > I have been trying to do a pretty simple geocoding example but each
> > time i get an "invalid label" error in firefox. and the response is
> > always null. Here's my code. help... please..
>
> > if (point.Status.code == "200") {
>
> > Here's the detailed error i get...
>
> > invalid label
> > isCachable()("Flushing NY 11355 USA")main.js (line 1461)
>
> I get "point.Status has no properties". The getLatLng() method doesn't
> return a status at all; for that you need getLocations().
>
> It really really is better to provide a link which you can be sure
> actually demonstrates the issue in question.
>
> Andrew
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---