amitmodak89 / magento-w2p

Automatically exported from code.google.com/p/magento-w2p
0 stars 0 forks source link

Distribution map front end features #482

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Create front end interface for outlining a distribution area on top of a google 
map.

1. When user selects to use distribution map, present him with a map centered 
around user's current location (if user browser supports this feature) or a 
predefined location.

2. When user clicks on the map, every click will place a vertex for a polygon. 
We are supporting only simple polygons (polygons without holes or cut outs in 
them)

3. Last vertex of the polygon should be deletable. It should have a Marker 
placed on top of it self and clicking that marker should delete last vertex. 
When a vertex is deleted, the marker should go on top of previous vertex.

4. Optional: when user clicks on the polygon he can choose to delete entire 
polygon and start over. This is confirmed by JavaScript dialog box.

5. Optional: add a button to enable/disable polygon editing. This can be 
helpful to prevent accidental clicks from the customer that can ruin work done 
so far.

6. Polygon information is added to a hidden input field in JSON format, and is 
being submitted with rest of the order. This hidden field will be actual form 
control for the custom option.

Original issue reported on code.google.com by jamb...@gmail.com on 16 Mar 2011 at 7:40

GoogleCodeExporter commented 8 years ago
1 - let google decide
2 - there needs to be a distinction between a click and click and drag
3 - use something simple. Atanas will chip in with sprites later, if needed.
4 - delete to start over or save. Not sure what save is in this case. Probably 
popping another message saying, yeah, you are done, move on. It will be 
confusing if the only option is to delete. Not sure. Thinking out loud.
5 - see #2
6 - KML -> JSON or object data as JSON? There's got to be KML at some stage. 
Users may find it useful as well. 

Original comment by zetapri...@gmail.com on 16 Mar 2011 at 10:40

GoogleCodeExporter commented 8 years ago
1. Google does not decide, it will give you map of entire Earth. Anyway I am 
done with that problem.
2. All events are handled by google code. They distinguish click and drag.
3. I use default google marker.
4. Currently what I do is when user clicks on polygon, it asks whether to start 
over.
If you think this is confusing, will just ignore polygon clicks. Every 
coordinate clicked is saved right away so no dedicated save button is needed.
5. No connection with 2. Accidental click happens, and no software can decide 
if you wanted to click or did it by accident.
6. KML is XML format there fore very , very bulky, on the other hand JSON takes 
much less space and is great to transfer information. Later that information 
will be parsed as KML. I think that user should have access to KML only in 
order details page. That would mean that they have to complete the order to get 
the kml.

Original comment by jamb...@gmail.com on 17 Mar 2011 at 10:08

GoogleCodeExporter commented 8 years ago
KML is common. A user may want to load KML from say their GPS or some other 
mapping s/w. We are not doing this option in the initial release, but it's on 
the cards.

Original comment by zetapri...@gmail.com on 17 Mar 2011 at 10:31

GoogleCodeExporter commented 8 years ago
Parsing kml and g on the map was not in the scope. That is adding complexity to 
entire thing. May we should talk about this more.

Original comment by jamb...@gmail.com on 18 Mar 2011 at 8:48

GoogleCodeExporter commented 8 years ago

Original comment by zetapri...@gmail.com on 24 Mar 2011 at 9:28

GoogleCodeExporter commented 8 years ago
I still think the universe with invert if I delete the vertex.
Rename Delete last vertex tooltip - > Undo last line.

Replace the marker with something that tells the user CLICK TO EDIT
What are the requirements for the marker icons?

Original comment by zetapri...@gmail.com on 24 Mar 2011 at 11:09

GoogleCodeExporter commented 8 years ago

Original comment by zetapri...@gmail.com on 24 Mar 2011 at 11:48

GoogleCodeExporter commented 8 years ago
Use this icon. We can change it afterwards.

Original comment by agur...@gmail.com on 25 Mar 2011 at 11:22

Attachments:

GoogleCodeExporter commented 8 years ago
Marker applied.

Original comment by jamb...@gmail.com on 30 Mar 2011 at 1:57

GoogleCodeExporter commented 8 years ago
Tested on /mageimage/
ZetaPrints_DistributionMap  0.1.5b (beta)
in all browsers.

http://ec2-174-129-95-130.compute-1.amazonaws.com/mageimage/index.php/magentot-0
2/map-test-product.html

Note. Opera doesn't show the default (hand) cursor while hovering over the map, 
but it does show our cursor (pencil) ok.

We will need to optimize the procedure in the future, I recon. Try drawing smth 
like this (map_01.png). It is impossible if you start drawing it from a point 
after the gap. Some might struggle, but not a big issue since distribution 
areas should not be too complex anyway. Most likely they will be simple squares.

Original comment by agur...@gmail.com on 31 Mar 2011 at 9:14

Attachments:

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
http://code.google.com/p/magento-w2p/wiki/DistributionMap

Original comment by agur...@gmail.com on 31 Mar 2011 at 9:17

GoogleCodeExporter commented 8 years ago
I agree that drawing some shapes is not very easy, but this ultimately is user 
problem, it is up to user from where to start.
I must note that it is possible to make cutout shapes or donuts but 
implementing this will complicate code a lot.

Original comment by jamb...@gmail.com on 31 Mar 2011 at 9:38

GoogleCodeExporter commented 8 years ago

Original comment by jamb...@gmail.com on 7 Apr 2011 at 3:25

GoogleCodeExporter commented 8 years ago

Original comment by ad...@zetaprints.com on 8 Apr 2011 at 5:26

GoogleCodeExporter commented 8 years ago

Original comment by ad...@zetaprints.com on 8 Apr 2011 at 9:03

GoogleCodeExporter commented 8 years ago
DistributionMap

Original comment by jamb...@gmail.com on 8 Apr 2011 at 9:47

GoogleCodeExporter commented 8 years ago
Wiki is not up to date. Ex:
"...must be noted that original text field is not hidden using css rules but 
just by putting the map on top of it. This is important to know when setting 
map size in admin. Map should be wide enough to hide the text field..."
This is no longer the case, right? Text field is always hidden. Please review 
and update the Wiki.

Help post is done:
http://www.zetaprints.com/magentohelp/distribution-map-extension/

Note. Needs to be published along with:
http://www.zetaprints.com/magento-web-to-print/distribution-map
and after issues 394 and 395 on redmine are resolved

Original comment by agur...@gmail.com on 8 Apr 2011 at 4:41

GoogleCodeExporter commented 8 years ago
Page edited

Original comment by jamb...@gmail.com on 11 Apr 2011 at 6:04

GoogleCodeExporter commented 8 years ago

Original comment by ad...@zetaprints.com on 20 Apr 2011 at 6:27