Code Monkey home page Code Monkey logo

gmaps-radius's Introduction

gmaps-radius

This very simple little web app allows you to draw circles on top of a Google Map OpenStreetMap, with a radius that you specify.

Try it out.

Query parameters

This tool supports the following optional query parameters:

  • lat: Viewport center latitude
  • lng: Viewport center longitude
  • z: Default zoom level

gmaps-radius's People

Contributors

obeattie avatar renovate[bot] avatar

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  avatar

Watchers

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

gmaps-radius's Issues

Unexpected page refresh when changing radius

If you have your cursor in the box for the radius setting and press enter (a reasonable thing for a user to do), the page refreshes, all circles are lost, and the location resets back to London.

I am using macOS 12.10.5. I've tested this on Safari 10.1.1 and Chrome 60.0.3112.78.

Request: Posibility to share the map/circles added?

Hi there
I am a veterinarian working for Animal Health and I am looking at the possibility of creating a circle/radious at a particular point where there has been an outbreak (e.g. Avian Flu) to establish a a first contention area (protective zone - 3km) and a secondary one (surveillance zone - 10km) and a would like to be able to share that with other colleagues for disease controls purposes .
I have tried creating the zones, but if I copy and paste the URL resulting it will share the map but not the circles.
Can this be achieved?
Thanks in advance

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Warning

These dependencies are deprecated:

Datasource Name Replacement PR?
npm @types/testing-library__jest-dom Unavailable

Awaiting Schedule

These updates are awaiting their schedule. Click on a checkbox to get an update now.

  • Lock file maintenance

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Ignored or Blocked

These are blocked by an existing closed PR and will not be recreated unless you click a checkbox below.

Detected dependencies

github-actions
.github/workflows/codeql-analysis.yml
  • actions/checkout v4
  • github/codeql-action v3
  • github/codeql-action v3
.github/workflows/deploy.yml
  • actions/checkout v4
  • actions/setup-node v4
  • actions/configure-pages v5
  • actions/upload-pages-artifact v3
  • actions/deploy-pages v4
.github/workflows/test.yml
  • actions/checkout v4
  • pnpm/action-setup v4.0.0
  • actions/setup-node v4
npm
package.json
  • @react-hookz/web 24.0.4
  • @tanstack/react-query 5.49.2
  • leaflet 1.9.4
  • nanoid 5.0.7
  • react 18.3.1
  • react-dom 18.3.1
  • react-leaflet 4.2.1
  • react-router-dom 6.24.0
  • @nabla/vite-plugin-eslint 2.0.4
  • @tailwindcss/forms 0.5.7
  • @testing-library/cypress 10.0.2
  • @testing-library/dom 10.2.0
  • @testing-library/jest-dom 6.4.6
  • @testing-library/react 16.0.0
  • @testing-library/user-event 14.5.2
  • @types/css-mediaquery 0.1.4
  • @types/leaflet 1.9.12
  • @types/react 18.3.3
  • @types/react-dom 18.3.0
  • @types/react-router-dom 5.3.3
  • @types/testing-library__jest-dom 6.0.0
  • @typescript-eslint/eslint-plugin 7.14.1
  • @typescript-eslint/parser 7.14.1
  • @vitejs/plugin-react 4.3.1
  • @vitest/coverage-istanbul 1.6.0
  • autoprefixer 10.4.19
  • commitizen 4.3.0
  • css-mediaquery 0.1.2
  • cypress 13.12.0
  • cz-conventional-changelog 3.3.0
  • eslint 8.57.0
  • eslint-config-airbnb 19.0.4
  • eslint-config-airbnb-base 15.0.0
  • eslint-config-airbnb-typescript 18.0.0
  • eslint-config-prettier 9.1.0
  • eslint-plugin-cypress 3.3.0
  • eslint-plugin-import 2.29.1
  • eslint-plugin-jsx-a11y 6.9.0
  • eslint-plugin-react 7.34.3
  • eslint-plugin-react-hooks 4.6.2
  • eslint-plugin-react-prefer-function-component 3.3.0
  • eslint-plugin-testing-library 6.2.2
  • eslint-plugin-unicorn 54.0.0
  • husky 9.0.11
  • jsdom 24.1.0
  • lint-staged 15.2.7
  • msw 2.3.1
  • npm-run-all2 6.2.0
  • postcss 8.4.39
  • prettier 3.3.2
  • prettier-plugin-tailwindcss 0.6.5
  • start-server-and-test 2.0.4
  • stylelint 15.11.0
  • stylelint-config-prettier 9.0.5
  • stylelint-config-standard 35.0.0
  • tailwindcss 3.4.4
  • typescript 5.5.2
  • vite 5.3.2
  • vite-plugin-pwa 0.20.0
  • vite-tsconfig-paths 4.3.2
  • vitest 1.6.0
  • whatwg-fetch 3.6.20
  • workbox-build 7.1.1
  • workbox-window 7.1.0
  • headers-polyfill 4.0.3

  • Check this box to trigger a request for Renovate to run again on this repository

Allow radius/unit to be prefilled via query string params

This is a super handy tool! One simple thing that would make it even handier IMO is to look for query-string params for radius and units and prefill the form values with them. For instance http://obeattie.github.io/gmaps-radius/?radius=50&unit=mi -- that way when we're referring to a threshold like "anything in a 50-mile radius" in our code/projects, we could just link that to this URL and anyone could immediately see what that radius looks like in practice, without needing to configure anything on the page. Hopefully should be a quick tweak (could do it in JS onload if you wanna keep your HTML static). :) Thanks! js

"Search for a place" broken

When I type the name of a location into the "Search for a place" prompt and hit enter, nothing happens.

I am using macOS 12.10.5. I've tested this on Safari 10.1.1 and Chrome 60.0.3112.78.

Google maps gives warning SensorNotRequired

Developer Error Code Type  Description
SensorNotRequired Warning The sensor parameter is no longer required for the Google Maps JavaScript API. It won't prevent the Google Maps JavaScript API from working correctly, but we recommend that you remove the sensor parameter from the script element.

Source

Migrate to OpenStreetMap

Use the free OpenStreetMap API instead of the Google Maps API. This would eliminate the ugly warnings over the map. Although it wouldn't be Google Maps, the free and open OpenStreetMap should be used instead.

Google Maps Error

The site is showing an error: "This page can't load Google Maps correctly."

Hitting "enter" will not relocate to the new destination

I have been using this for a little while and like it a lot. But it stopped working when I updated my browsers. When I hit enter in the location field, it won't move from London. I've cleared my browser and cookies and I still cannot get it to change locations. Is this a browser issue?

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.