wenbert / pley Goto Github PK
View Code? Open in Web Editor NEWPley to learn Django
Pley to learn Django
infoWindow will close and "Save Marker" button will disappear after saving the data.
Show saved markers on the map.
Make sure you focus on the map properly.
review why it's still there.
Address Line 2 not required
Add Marker to existing Business.
No LatLng, but Business is already in database - so we do not need to input the address and other details.
Instead of putting it in the form, just put it in the view -- get ID of logged-in user and put directly in the save statement...
http://localhost:8000/review/read/2/
's review for Figaro <-- Mistake looks like this
Add Review in search
Problem:
When there is more than 1 result, we have no control over which marker to focus.
The ideal situation would be that we focus on the city and not of the first result/last result.
See issue: http://github.com/wenbert/pley/issues/closed#issue/3/comment/349940
I found an example that uses Maps API V3 and Local Search: http://gmaps-samples-v3.googlecode.com/svn-history/r136/trunk/localsearch/places.html
I am trying to make this work in this file: business_view_v3_localsearch.html
The problem is that I get an empty result :-/
Compare business_item.name to the search results in LocalSearch.
Red marker for exact name.
Gray/Orange marker for other search results.
Center map to first Red marker.
Need to setup validation for Adding a Business using the Map.
Validate using jQuery.
Create an Update/Edit form for a Business.
I will re-use this form. I will have a small [Edit] link in the infoWindow.
When signing up, registration.signals.user_registered
(in pley_profiles/models.py) is triggered twice. Not sure why.
Temporary fix is to place profile.save()
in a try-except block.
How do we run tests?
How do we test?
I am too lazy to read the manual.
Try this: http://haystacksearch.org/
When searching for a Review the result ID is not returned properly.
Therefore, URLs are broken when click on the results.
Guba ang akong Django! pag-upgrade nako to 2.7 :(
In markers.js, validate() does not work.
Do not show Legend & Add marker icons when there is no map.
Properties Form not showing up in jQuery Dialog
Trigger click event in marker once it is added
When you pan to a new location, take the center of that location and add the Marker there.
Adjust Zoom if there are more than one Red Icons.
Find a way.
The Add Marker button in the jQuery Dialog box should not save!
It should only save once the "Save" Button found in the infoWindow is clicked.
add browse page according to tag
Disable Add Location Icon if user is not logged in
Add a location for the user:
This can be used to display new reviews and popular businesses within the user's city/location/
Display LocalSearch Results at the bottom of the map
Make sure that when you click on a result, it sends the mapview to the clicked item and then show an infoWindow!
zzz...
Documentation of AJAX Map Search Solution can be found here: http://www.google.com/uds/solutions/mapsearch/index.html
view name: business_view_ajax
compare results to: business_view
We need to find a way so that users are able to add markers in the map (drag and drop?) and then make those added items available once we do a LocalSearch search in the location.
Is this possible?
remove categories. just leave the database as is
create fields:
lat = latitude
lng = longitude
both are floats. both fields are not required.
One location per business/address?
OR
One business/address to Many location?
Once the Marker is "saved", get the ID of the inserted Business and return it as JSON. Put the ID in jQuery Data Storage. When the marker is clicked and the infoWindow opens, check the jQuery Data Storage if the ID exists, if it does, set button value to "Update Marker".
When the update marker is clicked, update the LatLng of the new location.
We should probably make an "Edit Form" for the added location/marker and have a small [Edit] link.
Will other users be able to edit other users' markers? Probably yes. Provided that they have enough posts/permission/moderator status.
Localsearch: http://code.google.com/apis/ajax/playground/#localsearch_with_markers
We need to use Google Maps Geocoding to center on the map and then put the markers in.
It uses the V2 API :-/
Handle multiple markers issue.
Need to think about this....
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.