Giter Club home page Giter Club logo

jk64-plugin-simplemap's People

Contributors

jeffreykemp avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

jk64-plugin-simplemap's Issues

Put all js functions in a scope

Instead of standalone functions like jk64plugin_geocode, put them all in a var called simplemap, e.g. simplemap.geocode().

Rename initMap to init (i.e. we now call simplemap.init())

Where do you set the Google API Key

Hi. I an not sure where you place the API Key. I have looked at Application and Page Items but can not find where it should go ?

Regards.

Initial Map Position attribute does not support comma as decimal separator

I can only use whole number in Initial Map Position.
imagen

I seems that it depends on the values you got for nls_numeric_characters.
Using
show parameter nls_numeric_characters;
gives me
nls_numeric_characters string ,.
Because of that the following code breaks
l_lat := to_number(substr(l_latlong,1,instr(l_latlong,',')-1));
l_lng := to_number(substr(l_latlong,instr(l_latlong,',')+1));

It is because to_number expects an ',' and not a '.' as decimal seperator on my system.
I might just change the code to
l_lat := to_number(substr(l_latlong,1,instr(l_latlong,';')-1));
l_lng := to_number(substr(l_latlong,instr(l_latlong,';')+1));
Then I should be able to enter the values as follows:
-25,23414;-53,12341243

I guess you could make the decimal seperator and the seperator for longitude and latitude configurable. Or at least mention this limitation in the wiki (if it already is written there, I did not see it).
Thanks for the plugin!

Regards

Nils Stritzel

Separate attribute to disable zoom/pan

At the moment, if readonly is set, the zoom and pan features are also disabled.

Instead, have separate attributes which control whether zoom and pan are disabled or not.

Support geocode search

Add optional geocode item attribute at the component level.
If the user enters a location name or address, do a google maps search and zoom to the relevant location.
Only works if the Google API Key is set.

Reverse geocode

Sets item to nearest address to the chosen location. Requires Google API Key.

Insufficient results found Alert on Dynamic Actions address

Hi,

First of all I would like to thank you for the plugin and say that it is very good and will be of great help in my project!

Now we are going to what is happening:

I am using the plugin on a page, with a field for the "Address Item" entered in the properties of the plugin, to be done a Google Maps reverse geocode when the user clicks on some point of the map.

So I added a Dynamic Action with the "address" event to populate the address fields returned by the plugin in separate fields on the screen, the problem is that for some addresses I get the "Insufficient results found" alert in the browser, even the address being found by Google.

So I looked in the google documentation and found the code below in this link https://developers.google.com/maps/documentation/javascript/examples/geocoding-reverse and saw that in the geocode function the example shows as follows:

if (results [0]) {
              map.setZoom (11);
              var marker = new google.maps.Marker ({
                position: latlng,
                map: map
              });
              infowindow.setContent (results [0] .formatted_address);
              infowindow.open (map, marker);
            } else {
              window.alert ('No results found');
            }

Debugging the plugin I saw that the if is done with the test below:

if (results [1]) {
$ s (opt.addressItem, results [0] .formatted_address);
        var components = results [0] .address_components;
        for (i = 0; i <components.length; i ++) {
          ("+ components [i] .long_name +") ");" + components [i] .types + "=" + components [i] .short_name + "
        }
        apex.jQuery ("#" + opt.regionId) .trigger ("address", {map: opt.map, result: results [0]});
} else {
window.alert ('Insufficient results found');
}

In my case the address is found, however only the record is returned in results [0], there are no results [1]. I also saw that there are more addresses that return less results in the array results.

Now I will leave the map by checking the results [0], I would like to know your opinion.

Marker

Jeffrey,

It must be that I'm doing something wrong, but I cannot get the marker to show.

Furthermore, I'd like to:

  • add some info to the marker
  • prevent zooming / clicking etc.

My application is here:
http://dapex50.smart4apex.nl/ords/f?p=132

regards,
Richard

Plugin does not work on mobile theme

Some attributes required by the plugin have only been enabled for "Desktop". All of them need to be enabled for both Desktop and Mobile.

Marker Zoom Level needs to be made mandatory as the plugin gives a javascript syntax error if it is not provided.

Demo app not available

Error "The application alias "JK64_SIMPLE_MAP" can not be converted to a unique application ID."
It's may be you don't put application alias name in app properties.

Geolocate

Option to try to pan&zoom to user's current location (if they give permission to the page to access their location).
Trigger an event providing the approximate (best guess) lat, lng of the user's location.

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.