Closed (fixed)
Project:
IP Geolocation Views & Maps
Version:
7.x-1.24
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
6 Mar 2014 at 13:18 UTC
Updated:
24 Mar 2014 at 23:11 UTC
Jump to comment: Most recent
Comments
Comment #1
GBain22 commentedLooks like this is due to the Addressfield module sorry to bother you :)
Comment #2
bmango commentedI 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?
Comment #3
bmango commentedI 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.
Comment #4
rdeboerThanks 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.
Comment #5
bmango commentedMany 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.
Comment #6
rdeboerYay!
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
Comment #7
rdeboer