Basic Google Map not showing all markers

raymond amegadjin asked on October 27, 2014 14:54

Hi,

I'm working on a project which requires me to display a specific marker icon on a location based on category assigned to this location.

The homepage has a custom document filter(drop-down) attached to a document data source which is used by the Basic Google Map, on loading the page the filter doesn't filter the data source. The site needs to display all the markers on the home page and only the specific ones related to a Region (or States) on the region page.

The location document type is a custom one having the all the properties of the Office document type and a few extras.

I'm currently able to show some of the markers, however some do not show at all on both the Homepage and the States pages. Only 38 over 93 do show on the homepage.

I'm using the client rendering and not server processing for the Basic Google Maps webpart. As part of the locations being shown some do not have their coordinates included on the location document type but still shows other in the same situation don't.

• Operating system : Win 8.1

• IIS version : 7.5

• .Net version : 4.0

. Kentico Version : 8.0.21

Any insight on the possible causes would be welcome.

Thanks

Recent Answers


Brenden Kehren answered on October 27, 2014 16:34

If I remember right the webpart uses on set of fields or the other. You can use both lat and long AND address geocode. How many don't have lat and long values? Also note, Google Maps API does have a daily and monthly limitation on how many geocodes you can perform.

0 votesVote for this answer Mark as a Correct answer

raymond amegadjin answered on October 27, 2014 17:21

Thanks for the reply. Actually, 76 do not have the coordinates but 10 among them are showing.The 10 shows on the home page but not on the States page. May you find below the Tree structure of the project: Home State Location On the homepage some of the state location are displayed but once on the state page they do not get displayed at all in most cases.

I'll check with the Google request limit, however no error or message are being displayed in the console of the browser.

0 votesVote for this answer Mark as a Correct answer

Brenden Kehren answered on October 27, 2014 17:39

So can you see how the 76 are being geocoded? Do they have multiple results? Do they have states? Could be why they don't show pins or filter on a state.

1 votesVote for this answer Mark as a Correct answer

raymond amegadjin answered on October 27, 2014 19:06

I did cross-check and noticed 2 things (from your suggestion to see if they were successfully geo-coded) that were affecting the rendering of the markers :

  1. Not all where able to be Geocoded because the location was not found and coordinates where missing. Because they did not have the state added to theirs location.
  2. The markers icons where throwing an error as the path was not properly formatted.

However, regarding the issue 1 on the states page i was able to resolve it without having to use the server processing properties ,as i wrote a macro to make the default location "State, Country" of the map. But i can't modify the document datasource to modify the locations value to be complet as "town, State,Country".

Thanks for your guidance

0 votesVote for this answer Mark as a Correct answer

Brenden Kehren answered on October 28, 2014 01:27

Do you have an opportunity to have lat and long for your locations? That would be a stronger solution in my opinion, especially if you are looking up a lot of locations.

1 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.