Code Monkey home page Code Monkey logo

Comments (4)

mikebronner avatar mikebronner commented on May 29, 2024

Hi @Dontorpedo thanks for submitting that idea. However, for now I think I will leave that feature out, because it doesn't really match with the intended purpose of this package. Could you expand on why this feature is important to your use-case?

from nova-map-marker-field.

Dontorpedo avatar Dontorpedo commented on May 29, 2024

Hi, yes!

it would be very helpfull for winter service tour planning, and services that are charged depending how many customers are nearby

from nova-map-marker-field.

mikebronner avatar mikebronner commented on May 29, 2024

@Dontorpedo Thanks for following up. For that to be programmatically useful though, I would think you would need to have more information returned than just the coordinates of the marker. For example, you would need the coordinates of the nearby markers, perhaps with distance and direction from the original marker, to be able to use it in any significant way.

Further, how would you determine which markers to show? Would they need to be based on specific criteria, distance, attributes, etc.? All these things are beyond what this Nova field is designed for.

This field is intended solely for determining lat/long coordinates of a given point on the map.

For more complex things, it is probably better to create your own custom field with the specific functionality you need, or perhaps even not do it in Nova, but have it be first-citizen functionality of your app.

I'm only guessing, of course, based on your short description -- it's difficult for me to envision exactly what your intentions are.

from nova-map-marker-field.

mikebronner avatar mikebronner commented on May 29, 2024

I can see what you mean by showing other markers nearby on the detail screen to give context, though.

If we limited it to nearby markers, we would have to have GIS functionality in the database to calculate distance in the where clauses. If we loaded all markers, it could quickly crash the page.

I'm going to put this on hold for now, but keep it here in case I can think of a good way to implement it. I'll be happy to consider a PR if you want to submit one and it is performant :).

from nova-map-marker-field.

Related Issues (20)

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.