function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
EguiEgui 

Map key state not found in map - Visualforce + Google Map

Hi there,

 

I'm using Visualforce and Google Map API, the page used to work well but now I got an error : "Map key state not found in map. "

 

I'm using Google Map API v3 so it doesn't require an API key, so I suppose it's coming from the visualforce but

after hours searching the code and the web, I can't figure it out.

 

I'm using a customized version of Find Nearby AppExchange application.

 

A hand would be great.

 

Thanks for reading.

SteveBowerSteveBower

I think the "Map" being referred to in the error is some Apex Map Collection created by the Visual Force controller code.   Somehow you're using the word "state" as a key to find an entry in the map, and there is no matching key/value pair with a key of "state" in the map.  

 

You might be confusing Map (the geographical display) with an Apex Map which is a collection construct.  That's why I mention this.

 

For more help I think you'd have to post code, etc.

 

Best, Steve.