Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
The results are in! See what nearly 90,000 developers picked as their most loved, dreaded, and desired coding languages and more in the 2019 Developer Survey.

Questions tagged [location]

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

0
votes
0answers
20 views

Gmap / Location modules not showing map without manually entering the latitude and longitude values

I am using the GMap Module for Drupal 7 along with Location, with Node Locations enabled. During the creation of an article, when I enter the location values as text fields (e.g. countries, cities) ...
0
votes
1answer
22 views

Location Contextual Filter: Distance/Proximity works for all nodes but one

Drupal 7 site with Location and Location CCK modules. Client has custom content type with Location field provided by Location CCK module. Each Location node has a Views block display of Nearby ...
0
votes
1answer
20 views

Location subfields problem to render in teaser template node

I have tried render only two array´s parameters. Street and postal code but don´t display anything this code. <?php print render($content['field_mapa']['und'][0]['street']); ?>and <?php ...
0
votes
1answer
15 views

How to create a theme function for overriding Address Field theming?

How do you create a theme function for overriding the formatting of an Address Field in Drupal 7? I didn't want to create a CTools plugin or work with render arrays.
0
votes
1answer
88 views

How to send a custom Solr Distance Query with SearchApi

My nodes have a geofield and my search query should find all the nodes within a range. I've managed to create a search form against my Solr Server with views. But I want to do the request by myself (...
0
votes
0answers
7 views

Reorder Location CCK fields in node.tpl

I would to change the display order of Location CCK sub-fields. Actually, the HTML is like : <div class="street-address"> Lycée des Métiers de la Communication, du Commerce et des ...
0
votes
2answers
30 views

How to filter users based on address location?

I have a content type "job". There is a field "location" which contains the zip code of area. Now i want to filter users based on distance from job's zip code. Each user also have a zip code. I ...
0
votes
1answer
18 views

geolocation_views: show combined data in tooltip

I have two content types that work together: "place": a place on a map (via a geolocation field) "object": an object that is in a specific "place" (referenced via an entityreference field) Several "...
1
vote
0answers
105 views

View that displays map with clustered points and Streetview option

I need to construct a map block that displays multiple location markers with the following characteristics: Markers are linked to other content on the page. Markers are clustered until you zoom in ...
0
votes
2answers
61 views

Create a Gmap with Views that connects locations of different nodes

I am looking for a way to make some sort of roadtrip website. The idea is to use two node types: a parent nodetype "Roadtrip" and a child nodetype "Day". The user can create a Roadtrip and add a ...
-1
votes
1answer
29 views

how to get location tokens to work in pathauto

I am attempting to use a city location in the URL via pathauto. I have this for the URL [node:title]/[node:location:city:0] When I create a new node, however, only the title is inserted into the URL. ...
0
votes
1answer
119 views

Lat/Long not getting imported into Geofield via feeds importer

I am working on a Drupal 7 website where I have a content type with geofield I am importing a .csv file with lat/long (title and lat/long(geofield)) the node gets created with title, but no location ...
1
vote
1answer
470 views

How to show the distance relative to the user's location?

I'm trying to recreate a site, and one part of the content is supposed to show the distance relative to the user's location, like this: Does anyone know of a way I can accomplish this?
1
vote
2answers
682 views

Geolocation Field - Map Marker in Views

I'm trying to show a map with multiple markers with the help of Views and Geolocation field. It would be nice for example if I can show the image in the tooltip display of the marker. But when I add ...
0
votes
1answer
107 views

Proximity filter without Solr

We have a view that displays indexed nodes and we would like to add the ability to filter by proximity to a user-input zip code. I know this can be achieved with Solr and the Search API Location ...
1
vote
0answers
254 views

Programmatically make a proximity search with Solr [closed]

I'm using Search Api Solr to do programmatic searches with the following example code. How can I include a proximity search with this approach? I've installed Search API Location - I'm looking through ...
2
votes
0answers
32 views

IPGV&M, how do I get the geocoder to prefer locations 'near me'

For example, if the map is centred on Sydney and people enter 2000 in the 'move to' box it sends me to Portland rather than Sydney CBD which also has a postcode of 2000. The regionbound description ...
0
votes
1answer
80 views

How to approximate user location on IP&Geoloc maps

I'm using the combinaison of this modules : Address field Geofield Ip&Geoloc Leaflet I need to approximate the location of user's markers on the map for privacy reason. For exemple if somebody ...
1
vote
2answers
142 views

How to override the ['search_distance'] in Location: Distance / Proximity Views in a custom module

After looking at the location module. I couldn't find any way to override the 'search_distance' parameter by creating a custom Form. dose anyone know how to override this variable by using a custom ...
1
vote
1answer
87 views

Use custom marker when specific checkbox is checked

I am building an events page. The page is using Gmap, Locations and Views modules. In the content type "Events", I have set a checkbox for "Featured Event", I want these events to stand out in the ...
0
votes
3answers
3k views

How to get country list array with their corresponding country codes

I have used $countries = \Drupal\Core\Locale\CountryManager::getStandardList(); to render array of countries with country code as their keys. But when I debug the variable $countries; print_r($...
4
votes
1answer
58 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 ...
1
vote
0answers
120 views

How do I configure 'proximity to address' exposed view filter?

I have a view of nodes each with an address, and latitude/longitude. I've attached a Google Maps view block which displays the pins on the map corresponding to the results in the list. I'm using ...
6
votes
2answers
776 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 ...
1
vote
1answer
20 views

Circular Search view not returning results if city exists in UK AND elsewhere

We have a locational search (using circular search filter in the View) available for our member groups across the UK: https://makingmusic.org.uk/resources/find-a-group-list Entering cities/towns by ...
0
votes
1answer
51 views

Adding map with user location into the profile

I am trying to add a 'IPGV&M: Map (Google) centered on visitor's location' block to all user profiles and I kinda succeeded. The map appears in the user profile, in the footer where i intended to ...
0
votes
1answer
66 views

Set up Node content 'localization' / site wide region filter - similar to languages idea

What is a good approach re structure and modules to be able to render site content based on a location drop down? It is not an option to display all the content via views. I'm aware of Views Global ...
0
votes
1answer
110 views

Add location to to profile2 just after the user registers

I am trying to force add a location to a user's profile2 just after the user register's an account. The user's are able to add locations to their profile by using flags, but since there are no ...
1
vote
0answers
32 views

Getting distance information on custom data table with Views (Drupal 7)

I am using Views to display a custom table (locations). I have everything setup properly but now, I would like to get the distance from the current user to display. I have first tried to get a ...
2
votes
0answers
461 views

Proximity Search? [closed]

Is there a working solution for proximity search in Drupal 8 yet or is it a case of waiting for the modules to be redeveloped? I want to help a user find the closest establishment to them within 100 ...
2
votes
1answer
822 views

How to display visitor's country flag depending on the visitor's IP address?

How can I display Visitor's country name and flag and depending on his IP address in a block?
1
vote
0answers
14 views

User can't change their own location after registration anymore

i'm using the loaction module for user locations. At the registration form a new user has to enter his oder her location and it will be displayed in his profile. When the user tries to edit his or her ...
1
vote
1answer
159 views

Can't save location when posting node through services module

I am using services module to post nodes using rest/json. The nodes also contain images and location. So far I can upload the image and save the node, but the location is not saved. I receive no ...
1
vote
2answers
102 views

Manage display of geofield with wkt input widget

I am stuck on something that seemed very simple and need your help. I have an input form where there is a geofield input field of type WKT. So the user gives the WKT of a point. When the node is ...
1
vote
0answers
23 views

Can a node have a 'wild card' ZIP Code that matches all ZIP codes?

I am using Drupal 7.43 and the Location module 7.x-3.7. Can a node have a 'wild card' ZIP Code that matches all ZIP codes? Application: Have a filterable view return a list of nodes with ZIPs within ...
1
vote
0answers
212 views

Geofield proximity order

I would like to sort my results by proximity in Drupal 7 Views. I have already read the geofield proximity in views topic. But that tutorial is using a location provided by the user (exposed filter) ...
1
vote
0answers
17 views

Location Module Fields not showing up in search api fields

Is there a way to show location fields using the location module in Search API fields?
1
vote
1answer
53 views

How to implement facets in Views

I'm trying to implement a search function with location in Drupal. At the moment I have a base setup with a custom Content Type (Discount), which has a Geofield parameter. This gets indexed in Solr ...
0
votes
0answers
100 views

Location province views exposed filter as a select list or checkboxes?

I'm displaying google map using gmap and location module through views. I want to add a province exposed filter to the view as a select list or checkboxes but I'm unable to do this. When I add the ...
1
vote
1answer
42 views

How to export GMap configurations?

I have a View block which renders a map through GMap formatter and includes two fields - Company Name and Address. When I export it through features and try to render it on another system, the map ...
1
vote
0answers
43 views

Show a block of locations based off proximity search

I've created a map, using Geofield, Leaflet and proximity search. This works great. I also wanted to add a block view on the same page that shows an unformatted list based off the proximity search. ...
0
votes
1answer
231 views

How to add a button :“Get my location” in page views

i have created a gmap views page, and i want add a button "get my location like this : i want give to visitor a button that can get his location in the map, some one have an idea how to do that ?
0
votes
1answer
198 views

How to show a map of the User's Location in the User's profile with Address Field and Geofield

So, the location + Gmap module showed a map of the User's address in the user's profile once it was geocoded. Is there an equivalent widget that will show a map of the user's address in the profile ...
0
votes
1answer
503 views

How to fix “GeoType” plugin does not exist

I'm following this tutorial. I've installed the geofield module and all needed for it wo work. I finally manage to create a content type "Place" with a field of type geofield. When i then create a new ...
0
votes
1answer
114 views

Automatic nodetitles and location tokens?

In a Drupal 7 site, I want to have automatic node titles taken from user contributed content. I have Location 7.x-3.x-dev (enabled Location and Location CCK) and Automatic Nodetitles 7.x-1.x-dev. ...
1
vote
0answers
17 views

Geofield map widget does no appear [duplicate]

I have installed and enabled geofield and geofield map, when i am editing the fields for my content types I have no choice for geofield_map?
1
vote
2answers
746 views

Does Gmap work with geofield?

I know Gmap is designed to work with the location module, but most spatial devs now suggest geofield as the "better" spatial data storage module. I had to use geofield for an open layers map, and now ...
1
vote
0answers
24 views

Some menu item visible only for user browsing from outside India [closed]

How to make some menu item of main-menu visible only for user browsing from outside India. Pls suggest any solution
4
votes
2answers
173 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 ...
0
votes
1answer
134 views

Gmap won't show infobubbles when clicking markers (with View Module)

First some information: Drupal Version - 7.41 GMap Version - 7.x-2.10 Location Version - 7.x-3.7 I'm using the gmap module on a webshop i'm creating. I made a custom content type for this (gmap) ...