This module add the map fields such that Distributor Map, Distributor Map Pointer, Distributor Map Description into added content type.We can move the marker any where arround the map to locate the distributor and the x and y position will be displayed in the
Distributor Map Pointer field like 20,30.We can easily view the distributor on the map created in block named as Distributor Map.

Project page : https://drupal.org/sandbox/Elavarasanrks/2055469

Git repository : git clone http://git.drupal.org/sandbox/Elavarasanrks/2055469.git distributor_map

Comments

elavarasan r’s picture

Title: Distributor Map » [D7] Distributor Map
PA robot’s picture

Status: Needs review » Needs work

There are some errors reported by automated review tools, did you already check them? See http://ventral.org/pareview/httpgitdrupalorgsandboxElavarasanrks2055469git

We are currently quite busy with all the project applications and we prefer projects with a review bonus. Please help reviewing and put yourself on the high priority list, then we will take a look at your project right away :-)

Also, you should get your friends, colleagues or other community members involved to review this application. Let them go through the review checklist and post a comment that sets this issue to "needs work" (they found some problems with the project) or "reviewed & tested by the community" (they found no major flaws).

I'm a robot and this is an automated message from Project Applications Scraper.

elavarasan r’s picture

Status: Needs work » Needs review
saemie’s picture

Hello,

[manual review]
distributor_map.module: On lines 112, 133, 277, 281, 286 use t() (excluding html tags.)
distributor_map.module:286 spelling mistake, should be "Cancel"

distributor_map.module:241 Never put variables directly into an SQL query. Always use parameter substitution. https://api.drupal.org/api/drupal/includes!database!database.inc/function/db_query/7

saemie’s picture

Status: Needs review » Needs work
elavarasan r’s picture

Status: Needs work » Needs review
elavarasan r’s picture

I have updated the code from your manual review. Please check out.

elavarasan r’s picture

Needs Review !

elavarasan r’s picture

Please take care about my project. I have updated one week before but no reply. I think it is in final stage. so please review my project.

Thanks

Elavarasan R

Sabareesh’s picture

Status: Needs review » Needs work

Hi,

Manual review :

1. In 'distributor_map_form', please make use of l() instead of constructing the link.
2. Place your image in a images folder and js in a js folder. This will reduce the complexity structure in your module.

Thank you

klausi’s picture

Status: Needs work » Needs review

Those minor points are surely not application blockers, anything else you found?

elavarasan r’s picture

I have updated my code and my code does not contains any application blockers.

Thanks

Elavarasan R

Sabareesh’s picture

@Klausi : Now I found this module working perfectly, just wanted to mention the changes that I felt.

elavarasan r’s picture

This is a simple module and it will be helpful for lot of developers who want to create the distributors in the map view. The main advantage of this module is that developer can change the map image, so user can choose the distributor location on the map.

Please shift this sandbox module into full project mode.

Thanks

Elavarasan R

elavarasan r’s picture

Please review my project. I think there are no errors in the project and it is working perfectly. So Please review my project to be converted to full project mode.

Thanks

Elavarasan R

mac_weber’s picture

Status: Needs review » Needs work

function distributor_map_form_alter() is really confusing.
You should render HTML using Drupal's theme layer. Adding everything in the form's code is very difficult to read/modify.

mac_weber’s picture

function distributor_map_block_view() has the same problem.

mac_weber’s picture

How this module is different from **many** mapping solutions available on Drupal?
How displaying x y position will help users?

elavarasan r’s picture

Unlike google map,the main advantage of this module is developer can change the map image such that country map,state map,world map,snapshot of such location where the user belongs to.

When creating the content, user can select the position where they belongs to.We dont care about x,y position because users where they select the marker on the image that will be displayed on the front end.

Thanks

Elavarasan R

mac_weber’s picture

Status: Needs work » Closed (duplicate)

As I said, there are many Drupal projects to handle mapping. Many of them already allow this feature of selecting and saving a location by clicking on the map at the node edit form.

Just getting a module name which focus a niche does not make it different from others.

I think this is a duplicated module, unless the author show the differences from other solutions already available. Feel free to change the issue status and post your arguments if you believe it is really a different project.

elavarasan r’s picture

Status: Closed (duplicate) » Needs review

This module allow the develper to change the map image(static image) whatever they need and it will create a block name Distributor Map to view all distributor location in the image.

User can enter the marker popup text in the filed of Distributor Map Description.

Developer can choose the map filed to different content type through the admin interface in the configuration settings.

Marker Popup :
We can change the marker popup by updating the file name map.css.

Javascript Files :
There are two javascript files named as distributor_map.js and distributor_map_view.js.

Any changes in node edit form can be done by updating distributor_map.js file.

Any changes in block view can be done by updating distributor_map_view.js.

As it is a simple module, it will be helpfull for all developer who need to create a map solution in their projects.
All developers can easily understand this module and easy to use.

Thanks

Elavarasan R

mac_weber’s picture

Status: Needs review » Closed (duplicate)

@Elavarasan you talked again about what your project does, you did not explain how your project is different from MANY other mapping solutions.

Everything your module does I see other full projects already doing. For example, a very simple project that allows clicking on the map to get the coordinates is gmap. Different than your project, gmap does not uses a static image for the map and it does not use pixels as coordinates. Using pixels as coordinates makes absolutely no sense as it is your own hard-coded image of the world that cannot be changed. I mean, these coordinates makes sense only in your own image, while gmap uses standard latitude longitude coordinates to do exactly the same task in a meaningful way.

Another solution is staticmap module which automatically generates the map from geofield and does not use a hard-coded map image, integrating with Google Maps and OpenStreetMap. Again, there are many other solutions doing the same thing.

Besides gmap there are many other mapping solutions available for Drupal. All top mapping developers* from the community agree there are too many modules to do the same thing already and these solutions are many times just repeating code. The efforts now are to consolidate the shared code among these many different projects into a main API which will be later used by other mapping sulutions (including simple and also very customizable solutions).

*When I say all top mapping developers I include in this list:
Pol - today's maintainer of OpenLayers module
brandonian - mantainer of geofield, geocoder, staticmap, and many others
RdeBoer - maintainer of "IP Geolocation Views & Maps", Leaflet More Maps, Leaflet Markercluster, co-maintainer of Leaflet module.
dasjo - maintainer of geocluster, leaflet_geojson, and others.
zzolo - top contributor of OpenLayers module
nod_ - core contributor and top contributor of OpenLayers module

How you can help:

All these developers are willing to get their projects bases on an common map API, which will be ported to D8 as soon as both this API and Drupal 8 get more stable.

We have been talking at IRC #drupal-geo and also at Location and Mapping group.

The API we are discussing and developing is Mapping module. There is also a sub-module in development: Mapping Leaflet. Pol said he is interested in getting OpenLayers as a dependency of Mapping, too. We want many others to join us.

I invite you to join us on discussions how to improve the Drupal mapping modules, and also helping us fixing this mess we have today of many different mapping modules having duplicated code. Having too many projects doing the same thing is confusing for developers and site builders. The proposal is to have a main API we can trust and many module that will integrate with different map libraries or functionalisties plugins.

elavarasan r’s picture

Issue summary: View changes

I have updated the user interface for users to upload their own image for using map and marker,
and removed the template file code from module file and added the same code into newly created template file.

The features of this module are:

-> Admin user able to upload their own images for mapping and marker.

-> Developer can easily create their own css for marker popup.

elavarasan r’s picture

Status: Closed (duplicate) » Needs review
elavarasan r’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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

avpaderno’s picture

Status: Closed (fixed) » Closed (duplicate)
Related issues: +#3128337: [D8] Url Restrictions

This application has never been approved, so changing its status to Fixed was wrong. As now there is a new application from the same user, I am closing this application as duplicate of the new one.