• Resolved bfrancoeur

    (@bfrancoeur)


    I have a client who needs a mapping plugin that will create layers from a geoJSON data set. The client needs a plugin that can easily be updated when new data is added to the geoJSON data set. Will this plugin do that? If not, do you know of one that will?

Viewing 9 replies - 1 through 9 (of 9 total)
  • Hello

    WP Google map pro version have this functionality. let’s have a look https://guide.flippercode.com/googlemaps/docs/how-to-insert-geo-json-url/ our guide to set geoJSON data set.

    Thanks

    Thread Starter bfrancoeur

    (@bfrancoeur)

    Thanks, Ruchisupport:)

    Hello

    You’re welcome ??

    Thread Starter bfrancoeur

    (@bfrancoeur)

    I downloaded and installed WP Google Maps PRO.

    I have a new question: How do I create layers or shapes using my local geoJSON data set? I tried doing this yesterday, but without success.

    What I need to do is create clickable shapes or layers for New York City, its five boroughs, and the community districts within each borough.

    NOTE: New York City’s boroughs and community districts do not directly correspond to geoJSON administrative levels.

    My attempt involved filling in the necessary UI fields. For the geoJSON URL, I used the path to the data set file (in this case, https://websitename/wp-content/themes/child-theme/geoJSON/brooklyn.geojson). On the front end, I got a blank map. On the backend, I kept getting an error telling me that I had to enter a latitude and longitude for each location. I don’t need to map locations; rather, I need to create layers or shapes that represent the various service areas for a company.

    Thinking that it may have been a database table mapping issue, I downloaded the sample csv and made a new file, using the sample as a template, adding the additional fields for my data. I uploaded the file via the UI, but still got the missing lat/lon error. I tried finding a data set with centroids for each area, but had no luck. Is there a way I can get this to work without having to manually calculate the centroid for each area?

    What I need is this:
    -A shape or layer that represents all of New York City, while showing the boundaries of each of the five boroughs.
    Clicking on a borough takes you to a page with the community district map of that borough.

    – A shape or layer representing each of the five boroughs, while showing the boundaries of each community district.
    Clicking on a community district takes you to a page with a street map of that community district.

    – A shape or layer representing each community district within the five boroughs.
    Needed for navigation links in the borough maps

    I have the geoJSON data for all of this and can convert it to whatever format works best for the plugin. I can also extend the plugin to: 1) override/remove the locations requirement; and 2) add new fields to the UI to import the NYC data sets.

    Currently, I have a data set for New York City as a whole, with the polygons for each borough and community district.

    I really appreciate any help you can give:)

    • This reply was modified 7 years, 10 months ago by bfrancoeur. Reason: Improve overall readability and update tags
    • This reply was modified 7 years, 10 months ago by bfrancoeur. Reason: Correct grammar
    Thread Starter bfrancoeur

    (@bfrancoeur)

    I am working with this plugin again, and see that I am getting the following error: Uncaught TypeError: jQuery is not a function. I think this is why the map is blank. From what I can tell in the Chrome Inspector, the URL is correct. This may be a conflict with another plugin, but I am not authorized to begin turning off plugins for troubleshooting purposes.

    Is there a way to resolve this without messing with a live website’s functionality?

    Thanks:)

    Thread Starter bfrancoeur

    (@bfrancoeur)

    UPDATE: I resolved the plugin conflict by setting a no-conflict variable, replacing every instance of “jQuery” with it:

    // original code:
    jQuery(document).ready(function($){
    // remainder of backend.js code
    })(window, document);

    var $j = jQuery.noConflict();

    // non-conflicting code: $j(document).ready(function($){
    // remainder of backend.js code, with all instances of
    // “jQuery” replaced with “$j”.
    })(window, document);

    Hello

    I am sorry for the inconvenience.I sincerely apologize for the delay in response.

    Glad to hear that your problem is resolved.Please let us know if you have any other issue or problem and thank you for being a WP Google Maps user.

    You are our premium user so Please generate a ticket here whenever you have any issue – https://www.flippercode.com/forums/

    Kind Regards

    Thread Starter bfrancoeur

    (@bfrancoeur)

    Well, the problem is back. I cannot seem to get rid of the “jQuery is not a function” error. I have added .noConflict() to backend.js, frontend.js, maps.js, but still get the exact same error. How can I eliminate this?

    I also tried using jQuery.noConflict in the WordPress footer.php template, but that didn’t work, either.
    Thanks!

    • This reply was modified 7 years, 10 months ago by bfrancoeur. Reason: Added detail about jQuery noConflict in WP footer

    Hello

    please send your wp login and page url where you placed the map via email to [email protected] so i can check this issue at your end?

    and also attach this support thread link in email so we can easily understand your issue.

    Thanks

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Can this plugin create layers from geoJSON data sets?’ is closed to new replies.