Hello,

I have 2 locations with these addresses:

address1: 15 whimbrel park, halewood, liverpool, l26 7ws

address2: 30 whimbrel park, halewood, liverpool, l26 7ws

Only one of them will show on the map - The actual houses are on the same street but are about 30 meters from each other. I'm using the "Dynamic Address" field and then using Geofield (Geocode from another field) to capture this in my node.

Is this a known bug? Is there a way around it?

Cheers,
Garry.

Comments

GBain22’s picture

Status: Active » Closed (fixed)

Looks like this is due to the Addressfield module sorry to bother you :)

bmango’s picture

I am having the same problem and I'm not using the addressfield module. I am using a simple text field to hold a postcode, from which the latitude and longitude coordinates are calculated. However, I am asking users to only enter the first three or four digits of their postcode (this is for UK addresses), as I don't want to actually pinpoint where people are. As I have thousands of users, many users share the same beginning postcode. On the map, only one person with a shared postcode will appear, all the others with the same postcode will be hidden. I have included the user's name as one of the fields in the view, and I'm also using the user's name for the tooltip. I thought this would then create separate entries for each user, however only one user is showing up per location. Is it possible to show multiple markers for the same location, that in my case would represent different users?

bmango’s picture

Category: Bug report » Support request
Status: Closed (fixed) » Active

I am changing the status to active. I also don't think this is a bug, I'm sure this is how it is supposed to work, so I'm changing the category as well to a support request.

rdeboer’s picture

Thanks bmango for the elaboration.

Actually what you are after is the way it is supposed to work: one marker per View result.

Here is the litmus test: temporarily switch the View Form from Map (Leaflet, via IPGV&M) (assuming you use Leaflet, as opposed to Google or OpenLayers) to Table and press Apply.
The table that appears should be a direct reflection of your map: 1 marker for each row in the table and all of the column fields not ticked as "Exclude from display" appearing in each of the marker info balloons.

If that does not happen, 1 marker for each row, then we have a serious bug.

Naturally as identical postcodes will generate identical latitude/longitude pairs all of the markers will be on top of each other, so you will only be able to see one, no matter how deep you zoom in.

To remedy this simply install the Leaflet MarkerCluster module. It will show a special circular marker with a count for the number of users in that postcode. Then when you click on that circular marker it will explode out into a spider web spiral of individual markers that each can be clicked on individually to reveal details of each individual user.

bmango’s picture

Many thanks RdeBoer for your quickly reply, and also for this excellent module.

I added the Leaflet MarkerCluster module and this has indeed solved my problem. Now, it shows how many users are at the same location and you can click on them to display each of the individual users as you said.

rdeboer’s picture

Yay!

Have a play with the cluster radius too (you can set it in the IPGV&M Views map config panel). In your case, if you want to show in each circular marker ONLY the locations in that postcode (and not neighbouring postcodes, which can happen if you zoom out to a very low zoom level), then you probably want to set it the marker cluster radius to 1 px.

Rik

rdeboer’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.