Giter Club home page Giter Club logo

mapsed's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

mapsed's Issues

Cannot edit a "custom" place once it's been added

Repo

  • Use the full example screen
  • Click the "+" icon to add a place
  • Enter place details
  • Click "Save"

Issue

When you click the "custom" place you've just added it brings up the "Save" dialog with an empty dialog rather than the data I've entered.

Street number

Is there any way to get the street number / house number from an existing Google Place?

Allow "template" customisation "hooks"

Allow the caller of the library to add headers and/or footers to the view template to give the end-user additional feedback.

For instance if end-user A adds a custom place but end-user B doesn't know it was added by another end-user they may trust the information as much as they would something else that appears on a Google Map (i.e. via the place service) which may have been subject to additional providence.

It would be useful to add something to notify end-user B that they're looking at a place defined by another user.

cannot set map zoom

The map is always showing with maximum zoom, even if I change DEFAULT_ZOOM in mapsed.js or if I give a zoom parameter to the mapOptions when calling $("map_container").mapsed()

canDelete model property missing

When presenting a marker (with attached model/venue data) we already have a canEdit property which flags whether a custom place can be changed in the UI (i.e. the Edit button is visible when the marker window is shown to the user).

However we don't have an equivalent property for the delete button.

Add an associated canDelete flag in the model that mapsed picks up to determine if the Delete operation is available to the end user.

make link tittle on example 1

hi, im getting a problem. trying to add link or creating a link on the tittle, in custom map example 1. i add <a href="" tag but it didnt work. please help

Center instead of search?

Hello Franz,

Again thanks for such a useful plugin. It definitely serves me well in the application Im trying to elaborate.

So I have more like a concern than it is an issue, I was wondering if it is possible to use the search box to center the google maps, instead of pointing out a marker? I mean, when I use the search box to search for something it automatically marks a place and ignores all my previous markers (custom markers) and just focus and that last one.

What I want to do, is load all markers (which I already do) and then just use the search bar just to focus on some location not really setting a marker (kinda like the GeoLocation but with the ability to search for a specific geoCentre). Is it possible to do something like this?

Thanks!

Marker pagination

If we have multiple markers in the same location (could be duplicates, could be chance) it's a fluke as to which one appears on the top of the map.

Indeed we kind of have this issue on the home page:

image

We should add some kind of pagination for markers where a collision occurs, something like this.

image

I think we need some kind of threshold, a percentage lat/lng of the current bounds of the map. The home page example will be a good one to work with. Remember we'll need to look at the vertical and the horizontal.

onMapMoved should be an async operation

Currently onMapMoved is a synchronous operation.

In reality onMapMoved on the consumer side will be a database call, with results being returned by a callback.

onMapMoved should therefore be async to handle the callback.

Ability to add "markers" to the current map boundary

Mapsed can add initial places when the map first loads but this would mean loading all custom markers.

Whilst this is useful it doesn't really work for the scenario where you may have thousands of custom places.

We should be able to hook into an event giving us the lat/lng coordinates of the segment of the map that's current shown to the user. That way we'll only have to load the markers that are relevant to the part of the map currently being shown to the end user.

Clicking on "custom" places opens in "edit" mode

When first clicking on a "custom" marker after it's been saved for the first time the tooltip opens in edit mode. There's no way to select the marker.

This should open in select/edit/delete mode so the user can decide what to do.

Change marker clicks to be a toggle

Clicking the x in the top corner of the infoWindow isn't a great user experience.

image

  1. The cross is quite small
  2. You have to move away from where you've just clicked (i.e. the marker) which is a pain if you're just looking around opening and closing markers

Change it so if the user clicks the marker a second time (whilst it's shown) it closes the infoWindow. In essence clicking the marker toggles the visibility on and off.

Prepopulate new places

When add a new place button is clicked on, Is it possible to pre-fill the form with approximate address values of the selected point (if there are any available by the api)?

Full example can be improved

Currently the full example just stores any custom places in memory. This means on a reload of the page you lose any places you've entered.

Not only is this not very realistic, it's painful to test with as you lose whatever you've do every time we make a change.

Refactor to use localstorage for a more realistic example.

how to combine search-for-places & custom-places

Hi,

First of all, great code !!!!

Second, this is not an issue, but I couldn't find any place to ask for this.

I just want to put a marker with my GeoLocation in the same page as the search-for-places. I tried to do it right after I get the variable (loc), but doesn't work. Finally, i tried this code, which works separetly, the one I put last works.

2 questions:

1st) if I put this code, it only puts the custom marker and doesn't put show the places search.
2nd) position:loc, doesn't work, I need to put the lat & lng (which I don't know as a variable).

function myGeoLocation() {
$("#search-for-places").mapsed({
showOnLoad:
[
{
autoShow: true,
// position: loc, // THIS DOESN'T WORK
lat: 50.825562,
lng:4.418065,
name: "Somewhere",
street: "Over the rainbow, Up high way"
}
]
});
}

function places() {
$("#search-for-places").mapsed({
searchOptions: {
enabled: true,
initSearch: "Football in Leeds",
placeholder: "Search ..."
}
});
}

$(document).ready(function() {
places();
myGeoLocation();
});

Thanks for any guidance ;o)

Sebastian

onAdd needs a separate save event from onSave

** BREAKING CHANGE **

Currently we use the onSave event for saving existing places (via the Edit button) and when new places are added via the + icon.

The problem with this approach is that if the user wants to allow saves when adding a place, but not allow users to edit an existing place. Granted it's a weird scenario but one we should support.

This will however be a breaking change as the user will need to add in the onAddSave event otherwise they can't save new places (as it's now a different event for saving those).

We should also add additional hooks to more easily add permission checks. For example canSave, canAddSave, canDelete, etc. Whilst we have hooks that handle at a global level (e.g. the onDelete hook determines if any venue can be deleted but there's nothing to only limit this to certain venues when they are selected).

"Select" option not available after searching for a place

Hi Franz,

Thank you so much for helping me with that last issue. Your plugin is exactly what our application needs.

On the inital load of the full-example-06.js, it displays the map great and the search function works fantastic. However I need the 'select' option to appear on a place popup...http://puu.sh/7HQg0.png

This problem exists on the plain full-example-06.html as well.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.