I can't get nodes with geolocation field to show on map. I see blank map without markers.
I have a node type AD. AD has a geolocation field.
Views set up:
- Views type: content
- Filter: ad, published
- Fields: title, locality (geolocation field)
- Sort: by posted date
- Format: Map (Google, via IP Geolocation)
-
In Format settings:
- Name of latitude field in Views query - ip_geoloc_latitude
- Name of longitude field in Views query - ip_geoloc_longitude
- Location differentiator - none
- Map centering options - Fixed center; see note below *)
- Visitor marker color - none
- Map options, Map style (CSS attributes) - empty
Under Name of latitude field in Views query is help text: Use the default, ip_geoloc_latitude, unless your view involves other modules or relationships, in which case you may have to prefix the name with the relevant table name(s), delimited by underscores. For instance, if you use a view based on the Location module, use location_latitude. If the latitude is stored in a text field, then enter the field's machine name, e.g. when using the Geofield, Geolocation field or Get Locations modules enter field_yourfieldname. Valid field names are on "this page".
"This page" is on url /admin/reports/fields/views-fields but geolocation filed is missing from list
I have there modules on:
- OpenLayers 7.x-2.0-beta1
- OpenLayers Views 7.x-2.0-beta1
- IP Geolocation Views and maps 7.x-1.18+2-dev
- Geolocation 7.x-1.1+11-dev
- Geolocation Google Maps 7.x-1.1+11-dev
- Geolocation HTML5 7.x-1.1+11-dev
- Geolocation Proximity Filter 7.x-2.0-alpha3
What I'm missing?
I have this message in status report:
IP Geolocation data collection methods employed
You currently have no data collection methods enabled. Therefore no new address information can be added to the IP Geolocation database.
I have none, because I dont need this feature right know. I want just show AD nodes on map.
Comments
Comment #1
rdeboerHave you tried following the README of "IP Geolocation Views and Maps"?
If you haven't saved the View after you added your Geolocation field under Fields in your View, then it won't be on that page .../admin/reports/fields/views-fields yet. However, it will be in .../admin/reports/fields, which is the page under the tab next to it.
Anyway, if you named your Geolocation field "locality" then the name to use for "Name of latitude field in Views query" is most likely field_locality
Also, if you're struggling, to keep things really really simple, do not enable OpenLayers or Geolocation Google Maps or Geolocation Proximity. Then use the Google map that comes built-in with IP Geolocaton Views and Maps, ie. the option "Map (Google, via IP Geolocation)". When you have that working enable OpenLayers (if you must) or Leaflet with Leaflet More Maps (my recommendation).
There are special instructions for OpenLayers in the README. OpenLayers is harder to use than Google Maps or Leaflet. With Leaflet you have the option to use the Leaflet MarkerCluster module, which is a beautiful gem of a little module.
Comment #2
jasom commentedGreat, thank you. It is solved. I thing problem was in
Also, I tried your recomendation about leaflet. This combinations of modules solved for me many potential problems:
Great module. Thank you
Comment #3.0
(not verified) commentedview typeadd