Git Product home page Git Product logo

umbraco-v7-property-editors-gmaps's Introduction

umbraco-v7-property-editors-gmaps

An Umbraco v7 Google Maps w/ Google Places Autocomplete lookup Property Editor

Installation

  1. Install the NuGet package

-or-

  1. Build the solution, drop the assembly in the bin folder of your Umbraco v7 installation
  2. Drop the App_Plugins folder from this repo into the corresponding folders of your Umbraco v7 installation

-then-

  1. Create a new datatype of type "Google Maps w/ Google Places Autocomplete lookup" and add a property of this new datatype in any of your document types.
  2. Type in a location in the textbox and wait for Google suggestion...
  3. Hit ENTER or TAB and watch the magic.

Bugs, feedback or suggestions

Please add any bugs or feature request to the issue tracker. Or give me shout at @netaddicts or shoot me an email at [email protected]

Enjoy

umbraco-v7-property-editors-gmaps's People

Contributors

batjan avatar christophborndigital avatar kipusoep avatar netaddicts avatar skttl avatar timgeyssens avatar wiedikerli avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

umbraco-v7-property-editors-gmaps's Issues

2 maps one document type - errors

Hello,

I am using 2 instances of a Google Maps datatype on one document type and its is causing a javascript error. It won't load load either of the maps. The error seems to be a google maps issue though:

maps.gstatic.com/cat_js/maps-api-v3/api/js/18/17/%7Bmain,places%7D.js:57 - Uncaught TypeError: undefined is not a function
Have you come across this?

Thanks,

Kenny

Load resources over protocol relative uri's

See http://our.umbraco.org/projects/backoffice-extensions/google-maps-property-editor-w-google-places-autocomplete-lookup/bugs,-feedback-and-suggestions/53982-Load-resources-over-protocol-relative-URIs

Inside of the GMaps.controller.js file, instead of using:

assetsService.loadJs('http://www.google.com/jsapi')
.then(function () {
Consider using:

assetsService.loadJs('//www.google.com/jsapi')
.then(function () {
The use of a protocol relative URI will stop any errors/blocked loading of the script when running the site under HTTPS.

Better localization

I used some prevalue fields for localizing the button etc. in my previous pull request. Since then I realised that the way localization is done in Archetype is probably an even better way to go about it. That means that the currently hard coded english texts can also be translated.

Hoping to have a go at it wednesday or in the near future at least :)

Reset map position to "default"

It would be nice to have a "Reset" button (which can possibly have a translatable label? Internationalization rocks! ;-)), which would reset the map to it's default starting point.

Decimal parse localization issue

If umbraco is run on a machine with different local from en-US where decimal mark and thousand separator is not according to en-US, e.g. 123.234.43,55 instead of 123,234,43.55 then the decimal.Parse wont capture the decimal mark in GMapsValueConverter.cs.

I've changed:

Lat = decimal.Parse(coordinates[0]),
Lng = decimal.Parse(coordinates[1])

to

Lat = decimal.Parse(coordinates[0], new System.Globalization.CultureInfo("en-US")),
Lng = decimal.Parse(coordinates[1], new System.Globalization.CultureInfo("en-US"))

unauthenticated javascript reference when using https

When the Umbraco backoffice is accessed with https the map datatype does not load. This is because a javascript reference is using http and the browser blocks it. The javascript reference is

<script src="http://www.google.com/jsapi/umb__rnd=7.1.5.28" class="lazyload" charset="utf-8"></script>

Cannot Action Place Lookup

Hi,

I'm having an issue whereby the enter key is grabbed by the Save & Publish, therefore trying to search for a location isn't working in the Place input field. I've tried both the Tab / Enter options and this fails. However the content saves and is always in the default location.

Regards,
Steven

NuGet package

It would be great if you could create a NuGet package of this editor.

The parsing of the coordinates should use the InvariantCulture

To prevent exceptions when running a website in other cultures, the parsing of the coordinates should use the InvariantCulture parameter in the file GMapsValueConverter.cs:

decimal.Parse( coordinates[ 0 ], System.Globalization.CultureInfo.InvariantCulture )

Kind Regards,
Gert

Location suggest box is not visible when used in a panel

When using this great editor in a panel (ie. in a LeBlender editor), the list of location suggestions is not visible.

This is because Umbracos modal have a z-index of 1050, while the location box (I guess it is .pac-container) has a z-index of 1000.

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.