Giter VIP home page Giter VIP logo

itop-jb-map-nominatim's Introduction

jb-map-nominatim

Copyright (c) 2019-2023 Jeffrey Bostoen

License Donate ๐Ÿป โ˜•

Need assistance with iTop or one of its extensions?
Need custom development?
Please get in touch to discuss the terms: [email protected] / https://jeffreybostoen.be

What?

Adds a geolocator search bar to iTop (to look up addresses using the Nominatim API) when modifying a single iTop object (details view). license
Note: this is just a concept, it does not contain all scenarios.

Requirements

iTop extensions:

  • jb-map (pro extension) - extension to manage geographical data in iTop

Cookbook

PHP

  • Adds a custom geolocator in the toolbar above the map.

Compatibility

  • iTop 2.7
  • iTop 3.0
  • iTop 3.1

itop-jb-map-nominatim's People

Contributors

jbostoen avatar

Watchers

 avatar  avatar

itop-jb-map-nominatim's Issues

Feature: Add support to show locator in dashlets

Feature: Add support to show locator in dashlets.

Currently, the locator feature is not part of the main "Maps" package as it relies on a third-party service (OpenStreetMap).

As it was created as a test/demo on implementing some custom functionality in the map's toolbar, it's original intention was to be a helpful tool while editing a single object. In this case, it creates or updates the single feature in the vector layer with the coordinates of a match (point or center of a line or polygon) when a result is found.
image

However, in the current version there is no check if the object is actually being edited. That needs to be addressed as well.
image

When bulk-editing, the geometry field is still visible as it's the only way to set coordinates. There's no hook here to add a map.

image

Additionally, because it was originally meant as a tool to assist while editing; the dashlet doesn't have the locator. However, the locator might be useful to zoom in on an area and see which features are there.

So the behavior should change:

  • Detail view: only enabled when editing.
  • Dashlet: add support to pan to the found coordinates (Perhaps zoom? But maybe better to let this to the user?)

Bug: The locator makes it possible to have point geometry even when this is not an allowed type

When editing an object and using the locator, by default it creates or updates the existing feature to a point feature with the discovered coordinates.

The locator tool should:

  • If a different type is returned in OSM (for example a line or polygon): Center to the point.
  • Else: Just center.

Only when editing: the feature will be created or updated only if it matches the currently selected feature type.

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.