Questions tagged [location]

Real-world geographic locations can be associated with Drupal entities.

Filter by
Sorted by
Tagged with
10
votes
6answers
8k views

Disable vertical tabs by content type or user role

Some users may only have the ability to edit one of the fieldsets that shows up in vertical tabs on the node edit form. In such a case it looks rather silly to be using vertical tabs since there is ...
9
votes
5answers
5k views

Programmatically Update Geofield Data

My setup is: Addressfield on nodes to collect address data Geofield using "Geocode from another field" choosing the addressfield and the Google Geocoder When I edit/save a node in the UI, the data ...
7
votes
1answer
1k views

Filter view based on displayed part of an Open Layers map

I have a page that shows an OpenLayers map which is fed with data coming from an Open Layers data overlay view (user locations; the location is provided via a location cck field in the user account ...
6
votes
1answer
761 views

Hide user fields on profile2 registration form

I am working on multi-user website with 3 roles in Drupal 7 website. I'm using profile2 module for custom fields for different users, also profile2 path for profile/user registration. Problem came up ...
5
votes
5answers
12k views

geofield proximity in views

Ive been trying to setup a view where the distance to users is stated. There has recently been an update of geofield however I am having trouble with calculating the distances to users (only get a ...
5
votes
2answers
4k views

using drupal sessions during hook_boot

When a user calls the front page of our site we want to check the country from which the user is surfing and redirect the user directly to the country specific front page. We chose to use the ...
5
votes
2answers
1k views

How can I pass the filter parameters of one view to a different view on the same page?

Summary I have two seperate views on the same page - one Page and one Block that show two seperate content types respectively, but have a filter exposed for a field that they share. On the page of ...
5
votes
1answer
3k views

Mark a location on a map (Google Maps/OpenLayers) on a node creation or edit page - but with which module?

I have a custom content type, and I would like my users to mark a location on a Google Maps/OpenLayers map, save these coordinates, and on the frontend, show the location's map and the GPS coordinates....
5
votes
2answers
539 views

How to show/hide fields based on visitor's country?

I have two fields (consider field_A, field_B). Anyone should see only one of these 2 fields based on their IP address: If users from US access the page, only field_A should be visible. For other ...
5
votes
1answer
1k views

Reverse geocoding (country) from geofield with coordinates

is there a quick way to do a reverse geocoding from a geofield field containing geographical coordinates? I just need the country name, so I wonder if there is some service with more allowance than ...
5
votes
1answer
528 views

Performance using location based information and proximity filters

I'm building a site where each piece of content is geocoded with latitude and longitude. Information will be shown based on proximity to a location chosen by the user. It seems like it would be faster ...
5
votes
2answers
964 views

How do I sort or filter a View by proximity using Search API location?

I am trying to set up a Solr Search View with Search API Solr and Search API location, witch is sorted by proximity an can be filtered by proximity. To achieve that, I created an search index, which ...
5
votes
1answer
1k views

How to show directions on a map when using the Geolocation Field module

I installed the Get Directions and the Geolocation Field modules. The Geolocation Field module displays a map, but I also want directions. How do I get the directions shown on a map? Do I need ...
5
votes
3answers
3k views

Closest nodes with Locations and Views

I'm using Drupal 7 with Views 3 module and Location 3 module installed. I have a content type that has a Location type field and I would like to build a view that given a latitude/longitude input ...
4
votes
2answers
4k views

zoom and centre gmap output based on results (views+gmap+location modules)

I've got several nodes with location information attached. I am using the Gmap output form views to show the results on a map. Drupal is so great sometimes, I'm literally shocked at how little time it ...
4
votes
2answers
631 views

How to restyle GeoField's proximity filter controls?

Background I am using the modules: geocoder geofield addressfield geophp ip_geoloc libraries to create a store locator view. The user can search the available stores using an exposed GeoField ...
4
votes
4answers
3k views

User proximity search?

I'm running D7. I'm trying to figure out how to a) tag users with a location (ZIP, address, city, state, etc.) when they register an account, and b) set up a search where the visitor inputs their ...
4
votes
2answers
3k views

How to theme markers bubble with Gmap module?

I've installed Gmap and location modules. I have a view with gmap display and i'd like to be able to display more than one field in the marker bubble, but the module doesn't allow more than one field ...
4
votes
1answer
1k views

Location proximity search using API

I have a small number of location nodes with geofields, and need to programmatically get the distance between a location and a zip code. It would be ideal if I could get a query, or a sort, of my ...
4
votes
1answer
2k views

How to make address1 field and zip code non required with Address Field module

I'm using Address Field module I want to make it a required field but only the Country and City values. I want to leave the zip code and Address as optional. I don't find a way to configure it like ...
4
votes
1answer
2k views

Show markers on gmap from all nodes exposed in view

I'm using gmap module to mark job locations on a map. It now shows all locations of content type: jobs. Is there any way I can only mark the displayed jobs from my view block? I filter the jobs ...
4
votes
1answer
259 views

Is there existing integration between the Salesforce and Location modules?

I'm using the Salesforce module in Drupal 7 and am attempting to create a mapping to one of my content types that contains a Location module field. After looking at both modules, I don't see an ...
4
votes
1answer
1k views

Adding “Directions To” to Geofield Map

I have a content type with a Location text field and a Geofield. The Geofield is geocoding the Location field into a coordinate and displaying it to a Google Map embed on the page. This is working ...
3
votes
3answers
1k views

Example of writing Latitude Longitude to a Geofield?

I need to write a lat/lon value to a Geofield and I can't figure out how to set the field. I would prefer to do this using EntityMetadataWrapper.
3
votes
3answers
1k views

Alter the results returned by “Display a summary” for the Addressfield module

When I set contextual filters in a view for Content: my field: country and Content: my field: administrative area (state/province) and select "Display a summary" for "When the filter value is not ...
3
votes
2answers
3k views

Location / distance based calculated field in views results?

Modules in use: Drupal 7.12 Views 3.3 Location 3.x-dev (and lots more of course) I have a pretty standard view which has a user entered proximity filter for distance from a zip code, used to shows ...
3
votes
2answers
401 views

Location module should lookup address before saving

This question is related to Adding geo location content to node. I'm trying to get a location saved to a node. The Location module supports this, but I don't like the workflow of this module. It ...
3
votes
2answers
189 views

How to implement georeferencing in Drupal?

I must make a website with geo-referenced content. And I would like to add POI and the possibility to download this POI for GPX, KML\KMZ (Google Earth), etc. Any tips or ideas to implement this ...
3
votes
1answer
674 views

Sort a view by country - according to the translated countries

I have a view displaying some nodes of a content type. Each node has a location assigned (with the location module). I want to group and sort the results by countries. The grouping works fine, and ...
3
votes
2answers
1k views

Help with Geocoding and Openlayers missing markers

I have followed this tutorial exactly http://drupal.org/node/1002852 to create a node type with geocoding. I have a default install of openlayers, openlayers_geocoder. Geocoding appears to be working ...
3
votes
1answer
1k views

Remove “where” clause in views 3

I want to remove "where" clause for city and postal_code in the views query. I found an example online for D6. I tried to change it a bit but it's not working. The "where" clause is still there. Below ...
3
votes
2answers
699 views

Using Drupal 5 Gmap + location. What's the Drupal 7 equivalent?

I have an existing Drupal 5 site that I want to port over to Drupal 7. In my existing site, I have custom CCK types for, for example, a business type such as restaurants. I have the Location and ...
3
votes
1answer
426 views

Add a map for each node in a view

I am building a restaurant application which would have a search functionality, and when somebody searches of restaurants for a zip code, it would return the data. The data would be the name of the ...
3
votes
1answer
799 views

Most appropriate simple IP direct for Drupal 7

Having looked at the descriptions provided for the following modules ip2cc ip2country geoip smart_ip I'm having trouble identifying which module would be the simple solution to my scenario. I have ...
3
votes
1answer
2k views

Province/State list does not update when Country changes when set to “Dropdown” (Location Module)

The Location module is exhibiting a weird bug. When setting a location (Country & Province/State), if I use autocomplete for the Province field, it will only suggest provinces in the selected ...
3
votes
2answers
480 views

Displaying geo data on openlayers

Is there any module I can use to display limited points on OpenLayers using bbox-filtering in Drupal?
3
votes
2answers
895 views

Autopopulate “Postal Code” from taxonomy in Location module

In Location module input I want to disable "Postal Code" field but the node will have a mandatory vocabulary selection (vocabulary name: Postal Code). What I want is that when I create a node with ...
3
votes
2answers
144 views

Freetagging with location?

I want users to be searchable by their location. How do you add a free tagging widget type to a location field. Or, can GMAP/Location recognize every city as a term? Basically, how can users have ...
3
votes
1answer
293 views

Set location country based on coordinates

Is there a way to have Location pick the appropriate country based on the latitude/longitude entered when the node is saved?
3
votes
1answer
62 views

Taking node map from /map/node and using it on home page

I need a google map block which would show all the nodes' location with markers. I noticed that Location module has this built in if I follow /map/node url. My question is, can I somehow take this map ...
3
votes
1answer
560 views

Geofield Display Format Data Options (Using Bounding Box)

I am using Geofield to store point and polygon features. Input works fine with all the different widgets I have tried. Display formats (GeoJSON, WKT, KML) with Data Options "Use full geometry" and "...
3
votes
4answers
2k views

Views exposed filter error “An illegal choice has been detected. Please contact the site administrator.”

I am having a very odd problem with an exposed filter in one of my Views. The page I am talking about is here: http://epsindustry.org/eps-packaging-map2 When I select one of the last 2 options in the ...
3
votes
0answers
448 views

How to use location distance / proximity filter with facet search api

I am using location, gmap, facet api modules and I have created search page for node with facet api. I want to use distance / proximity filter for facet search but I didn't get distance / proximity ...
3
votes
0answers
322 views

Creating a custom views filter handler with a non-sql query

So, I'm working on a custom views handler that will allow users to filter based on field comparisons. I've overridden the operator to use my own function defined elsewhere in the module that ...
3
votes
3answers
5k views

Use GMaps with just one country

I would like to have a map on my website displaying all my stores. That worked out pretty well except for the fact the map is displaying more then just my country. Is there a way to just show one ...
2
votes
3answers
358 views

Drupal 7, GPS lat, lng closes value, is it possible?

After multiple attempts to figure out how to find the closest gps point from the lat & lng fields (field_data_field_lat & field_data_field_lng) I would like to ask if such is possible? Is ...
2
votes
3answers
2k views

Adding geo location content to node

I'm looking for a maintained module that allows to add a geo location to a node of a custom content type. I am looking for something that has integration with Google Map API so that it's possible to ...
2
votes
3answers
2k views

How do I have points and polygons in the same Leaflet map?

I have two content types Location that geocodes an addressfield to place markers on the map Boundary that uses a geojson field to create complex shapes on the map I need to use views to show both ...
2
votes
1answer
3k views

How to implement autocomplete for address field using google places/maps api? [closed]

When using Eventbrite event creating form, i noticed their address field has an autocomplete feature powered by Google. Is there a Drupal module that does something similar ? Demo link on Google Code
2
votes
3answers
3k views

How do I write to location field in an Entity?

I am having a custom entity called Micronews which has a bundle microupdate created in it. I am able to write entity to db for all fields but I am not able to figure out how to write location (using ...

1
2 3 4 5
7