WordPress.org

Ready to get started?Download WordPress

Forums

Contact Form 7 Map Field
[resolved] Translation and initial map location (6 posts)

  1. alfonsosanchez
    Member
    Posted 1 year ago #

    1- Where can I find the code that outputs this: "find my location ? You are somewhere around here" and how can i translate to Spanish?

    How can I change the initial location of the map from London to a different city?

    http://wordpress.org/extend/plugins/contact-form-7-map-field/

  2. shemesh
    Member
    Plugin Author

    Posted 1 year ago #

    hi,
    everything you need is in a file called "map-code-leaflet.html"
    you can edit it from the admin panel.

    - on the top part you'll find all the text used, feel free to translate.
    - the default location (and zoom level) is in the same file at line #95, search for a comment that say "set default view", the line below is map.setView(...)
    the parameters are: map.setView(new L.LatLng(latitude, longitude), zoom);

    the map libarary used is Leaflet so you can see its complete api here

  3. alfonsosanchez
    Member
    Posted 1 year ago #

    Thanks shemesh for the answer and thanks for the plugin.
    Is there any chance of you working in a plugin for contact form-7 to work whit gooogle charts? that will be amazing!

  4. shemesh
    Member
    Plugin Author

    Posted 1 year ago #

    if by google charts you meant google maps than check the other disscusion on the plugin support page.

  5. alfonsosanchez
    Member
    Posted 1 year ago #

    nop, what i meant is google charts. Data charts.

  6. shemesh
    Member
    Plugin Author

    Posted 1 year ago #

    no plans for that.
    out of interest... how would you think to incorporate a chart into a contact form? i mean, what is the point of this?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.