The google_map_cutter project is a web application that allows users to select two points on a Google Map and cut out an image of the selected area. This application is particularly useful for creating custom maps and extracting specific regions for various uses.
- Interactive Map: Users can interact with the map to place markers and define the area to be cut out.
- Custom Coordinates: Users can manually input coordinates for precise selection.
- Map Types: Supports different map types, including roadmap and satellite views.
- Screenshot Functionality: Easily take screenshots of the selected area.
- Reset Function: Clear all markers and start over.
index.html: The main HTML file that sets up the structure of the web page.styles.css: Contains the styling for the web page.script.js: Contains the main JavaScript logic for interacting with the Google Maps API and handling user inputs.
- Clone the Repository:
git clone https://github.com/yourusername/google_map_cutter.git cd google_map_cutter - Add Google Maps API Key:
- Create a file named
config.jsin the root directory. - Add your Google Maps API key in the following format:
const config = { API_KEY: 'YOUR_GOOGLE_MAPS_API_KEY' };
- Create a file named
-
Open
index.html: Openindex.htmlin a web browser to start using the application.
-
Interact with the Map:
-
Take a Screenshot:
-
Reset Markers:
- Click the "Reset Markers" button to clear all markers and start over.
If you need specific images, please let me know, and I can provide screenshots or additional visual aids for the README.
- Google Maps JavaScript API
- HTML2Canvas for screenshot functionality
This project is licensed under the MIT License. See the LICENSE file for more details.
For any questions or inquiries, please contact [gen_gen33@outlook.jp].

