Git Product home page Git Product logo

Comments (8)

leonardfischer avatar leonardfischer commented on July 21, 2024

Hi Barat,
thanks for reporting!

I believe a solution may be changing JSON keys from:
var test = {key_1: 'value_1', key_2: 'value_2'};

to:
var test = {'key_1': 'value_1', 'key_2': 'value_2'};

I'll check, when I'm home and push a solution.

Thanks again!

from kohana-google-maps-module.

barat avatar barat commented on July 21, 2024

It's not json but your default view. There You make whole <script> thing, but You leave last comma in each array/params ;)

For example here:

https://github.com/solidsnake/Kohana-Google-Maps-Module/blob/master/views/gmap.php#L36-43

You will get last "," in array + Error in IE ;)

from kohana-google-maps-module.

leonardfischer avatar leonardfischer commented on July 21, 2024

Alright, I pushed a bugfix - I tested it in IE 7 and 8. I hope it works for you aswell :)

from kohana-google-maps-module.

barat avatar barat commented on July 21, 2024

I fixed it by my own, no json - just changed if/else places to not include comma if not needed ;)
But Your solluton may be cleaner ;)

Thnking about geocode function? For example getting lat/lng from given address? ;)

BTW. Polygon and Polylines can make same bug because of comas ;)

from kohana-google-maps-module.

leonardfischer avatar leonardfischer commented on July 21, 2024

Mh, I thought about it - yes... But I'm not sure if that stuff belongs in this module. Also I believe there's already another module for that.

If you're looking for some great Kohana modules, take a look at https://github.com/ahutchings/kohana-modules

from kohana-google-maps-module.

barat avatar barat commented on July 21, 2024

Yes I used and Fixed one plugin for geocode (deprecated functions, some bad checking etc) and placed it inside Your module ;)
But this is just a sugestion ;)

from kohana-google-maps-module.

leonardfischer avatar leonardfischer commented on July 21, 2024

Well, if it's fully integrated you could send me a pull request :D

from kohana-google-maps-module.

barat avatar barat commented on July 21, 2024

Can't - old module. I found this one - pretier, cleaner ... and I think that only thng it have to be done is changing name to geocode and maybe remove "key" part, because v3 doesn't need keys ;)
https://github.com/guillermin/gmaps

from kohana-google-maps-module.

Related Issues (4)

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.