WordPress.org

Forums

Leaflet Maps Marker (Google Maps, OpenStreetMap, Bing Maps)
[resolved] Icon question(not saving) post save marker and other (18 posts)

  1. JohnnyB3
    Member
    Posted 1 year ago #

    I am trying to make a form so i can add markers inside a wordpress page i have (was going to use it in the form for registration page of a job lead)
    I have been adding markers to the map here is the code to show others

    <?php
    function calculate_signature($string, $private_key) {
    $hash = hash_hmac("sha1", $string, $private_key, true);
    $sig = rawurlencode(base64_encode($hash));
    return $sig;
    }
    $api_key = "test1234";
    $private_key = "testabcd";
    $expires = strtotime("+60 mins");
    $string_to_sign = sprintf("%s:%s", $api_key, $expires);
    $sig = calculate_signature($string_to_sign, $private_key);
    var_dump($sig);
    ?>
    <br>
    Current map:
    <!--
    <iframe width="425" height="350" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://somedomain.com/wp-content/plugins/leaflet-maps-marker/leaflet-api.php?key=<?=$api_key;?>&signature=<?=$sig;?>&expire=<?=$expires;?>&action=view&layer=1"></iframe
    -->
    <form action="" id="myform" method="POST">
    <input type="hidden" name="key" value="<?=$api_key;?>"/>
    <input type="hidden" name="signature" value="<?=$sig;?>"/>
    <input type="hidden" name="expires" value="<?=$expires;?>"/>
    <br>
    Add (default: add): <input type="text" name="action" value="add"/><br>
    Layer Number (default: 1): <input type="text" name="layer" value="1"/><br>
    Type (default: marker): <input type="text" name="type" value="marker"/><br>
    Marker Name (default Headquarters): <input type="text" name="markername" value="Headquarters"/><br>
    Lat (gets overwritten if parameter geocode is used!): <input type="text" name="lat" placeholder="lat" value=""/><br>
    Lon:(gets overwritten if parameter geocode is used!): <input type="text" name="lon" placeholder="lon" value=""/><br>
    <div style="width: 800px;">
    Icon URL (Note for johnny: need to expand this like mapmarker has){uses maps in map marker directory}: <input type="text" name="lcon" placeholder="lcon URL" value="workoffice.png"/><A HREF="http://somedomain.com/wp-content/uploads/leaflet-maps-marker-icons/workoffice.png" title="opens in new Tab/Page" target="_blank"><IMG SRC="http://advanceyourskill.com/wp-content/uploads/leaflet-maps-marker-icons/workoffice.png" ALT="Work Office" style=" align:middle; text-align:middle;" BORDER=0></A><br>
    </div>
    Popuptext (need to test html here): <input type="text" name="popuptext" placeholder="popuptext(html{WORKS})" size="275" value='<h3><a title="Web Designer" href="http://somedomain.com/job/web-designer/">somedomain.com</a></h3><b> testing bold html<b>'/>
    
    <br>
    Created by (Persons name): <input type="text" name="createdby" placeholder="createdby" value=""/><br>
    Created On date (defualt today {auto}): <input type="text" name="createdon" placeholder="date" value="<?=date("Y-m-d H:i:s");?>"/><br>
    Address (gets overwritten if parameter geocode is used!):<input type="text" name="address" placeholder="address" value=""/><br>
    geocode (value gets geoencoded via Google Places API and overwrites parameter lat, lon and address): <input type="text" name="geocode" size="75" value="2 Main Street, Park Ridge, IL 60068, USA"/><br>
    <input type="submit"  id="submit4" name="submit" value="submit"/><br>
    </form>

    im having a few problems

    1: the icon weather i give it a path or just a file name it does not use the value(in the next json output the icon value is blank. {is this pro only feature maybe? - if so you need to update the docs}

    2: the show map is that possible from the api if not how can i show the map in the same domain but not inside wordpress? is the iframe url correct? it does not work says it has a signature error {yet the map marker saves just fine with same credentials}

    3: is there any docs{examples} for using this with the json reply, as i have been having problems with getting the form to submit via ajax to show the error/works replies.

    thanks in advance for any help anyone may help with.

    https://wordpress.org/plugins/leaflet-maps-marker/

  2. RobertHarm
    Member
    Plugin Author

    Posted 1 year ago #

    regarding #1 - icon issue:
    you have a typing mistake in your input field for icon - is says name="lcon" instead of name="icon" - works both in free and pro (only difference of API in pro version is that you
    are also able to use update, delete and search actions)

    regarding #2 - showing the map via API:
    there seems to be a misunderstand here - the API can only be used to manipulate map data, when you use the parameter view, you get all parameters for a layer map with ID 1 for example.
    If you want to embedd a map via iframe, you can use the link to the according fullscreen map, like:
    <iframe width="425" height="350" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://somedomain.com/wp-content/plugins/leaflet-maps-marker/leaflet-fullscreen.php?layer=1"></iframe>
    regarding #3 - additional examples for jquery: please have a look at http://wordpress.org/support/topic/creating-a-marker-by-function-or-by-any-code#post-5302104 - this is how basically a jquery ajax
    form request could be done - what´s not yet in this example is how to deal with the response (basically you could check for succes and if true display ok message and if false display error message).
    hope this helps!
    best,

    Robert

  3. JohnnyB3
    Member
    Posted 1 year ago #

    i will try the suggested fixes, i will also post if i find a solution to the response for ajax too
    thank you so much for a fast reply.
    *we do plan on buying the plugin at one point as we do want the cluster feature. and i will rate the plugin too soon, just trying to get this all ironed out first.
    thank you again. great plugin

  4. JohnnyB3
    Member
    Posted 1 year ago #

    im having all sorts of problems.
    i have been playing with the api with forms and direct url to place a marker on the map. i have been having problems.

    the code here works fine

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
    <HTML>
    <HEAD>
    <TITLE>
    </TITLE>
    <META NAME="Generator" CONTENT="TextPad 4.6">
    <META NAME="Author" CONTENT="?">
    <META NAME="Keywords" CONTENT="?">
    <META NAME="Description" CONTENT="?">
    <!-- include jquery library file-->
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js"></script>
    </HEAD>
    
    <BODY BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#FF0000" VLINK="#800000" ALINK="#FF00FF" BACKGROUND="?">
    
    <!-- The ajax/jquery stuff -->
    <script type="text/javascript">
    	$(document).ready(function()
    	{
    		alert("doc ready ajax");
    //callback handler for form submit
    $("#ajaxform").submit(function(e)
    {
        var postData = $(this).serializeArray();
        var formURL = $(this).attr("action");
        $.ajax(
        {
            url : formURL,
            type: "POST",
            data : postData,
            success:function(data, textStatus, jqXHR)
            {
                //data: return data from server
    	    alert(data);
    	    $('#contact_form').html("<div id='message'></div>");
    	    $('#message').html("<h2>Marker Form Submitted!</h2>")
    	    .append("<p>more info here.</p>")
    	    .hide()
    	    .fadeIn(1500, function() {
    	      $('#message').append("Done");
    	      };
            },
            error: function(jqXHR, textStatus, errorThrown)
            {
                //if fails
            }
        });
        e.preventDefault(); //STOP default action
        e.unbind(); //unbind. to stop multiple form submit.
    });
    
    $("#ajaxform").submit(); //Submit  the FORM
    	});
    </script>
    
    <?php
    function calculate_signature($string, $private_key) {
    $hash = hash_hmac("sha1", $string, $private_key, true);
    $sig = rawurlencode(base64_encode($hash));
    return $sig;
    }
    $api_key = "testing1234";
    $private_key = "testingabcd";
    $expires = strtotime("+60 mins");
    $string_to_sign = sprintf("%s:%s", $api_key, $expires);
    $sig = calculate_signature($string_to_sign, $private_key);
    var_dump($sig);
    ?>
    <br>
    Current map:
    <iframe width="425" height="350" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://somedomain.com/wp-content/plugins/leaflet-maps-marker/leaflet-fullscreen.php?layer=1"></iframe>
    <!--
    <iframe width="425" height="350" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://somedomain.com/wp-content/plugins/leaflet-maps-marker/leaflet-api.php?key=<?=$api_key;?>&signature=<?=$sig;?>&expire=<?=$expires;?>&action=view&layer=1"></iframe
    -->
    <DIV id="contact_form" ALIGN="left">
    <form action="http://somedomain.com/wp-content/plugins/leaflet-maps-marker/leaflet-api.php" id="ajaxform" method="POST">
    <input type="hidden" name="key" value="<?=$api_key;?>"/>
    <input type="hidden" name="signature" value="<?=$sig;?>"/>
    <input type="hidden" name="expires" value="<?=$expires;?>"/>
    <br>
    Add (default: add): <input type="text" name="action" value="add"/><br>
    Layer Number (default: 1): <input type="text" name="layer" value="1"/><br>
    Type (default: marker): <input type="text" name="type" value="marker"/><br>
    Marker Name (default Headquarters): <input type="text" name="markername" value="Headquarters"/><br>
    geocode (value gets geoencoded via Google Places API and overwrites parameter lat, lon and address): <input type="text" name="geocode" size="75" value=""/><br>
    Address (gets overwritten if parameter geocode is used!):<input type="text" name="address" placeholder="address" value=""/><br>
    Lat (gets overwritten if parameter geocode is used!): <input type="text" name="lat" placeholder="lat" value=""/><br>
    Lon:(gets overwritten if parameter geocode is used!): <input type="text" name="lon" placeholder="lon" value=""/><br>
    <div style="width: 800px;">
    Icon URL (Note for johnny: need to expand this like mapmarker has){uses maps in map marker directory}: <input type="text" name="icon" placeholder="icon name" value="workoffice.png"/><A HREF="http://somedomain.com/wp-content/uploads/leaflet-maps-marker-icons/workoffice.png" title="opens in new Tab/Page" target="_blank"><IMG SRC="http://somedomain.com/wp-content/uploads/leaflet-maps-marker-icons/workoffice.png" ALT="Work Office" style=" align:middle; text-align:middle;" BORDER=0></A><br>
    </div>
    Popuptext (need to test html here): <input type="text" name="popuptext" placeholder="popuptext(html??)" size="275" value='<h3><a title="Web Designer" href="http://somedomain.com/job/web-designer/">somdomain.com</a></h3><b> testing bold html<b>'/>
    
    <br>
    Created by (Persons name): <input type="text" name="createdby" placeholder="createdby" value=""/><br>
    Created On date (defualt today {auto}): <input type="text" name="createdon" placeholder="date" value="<?=date("Y-m-d H:i:s");?>"/><br>
    <input type="submit"  id="submit4" name="submit" value="submit"/><br>
    </form>
    </DIV>
    </BODY>
    </HTML>

    i am having issues with the ajax calls(but thats another problem)
    this does work tho as is and outputs

    jsonp({
    "success":true,
    "message":"Marker has been successfully published",
    "data": {
    "id":"19",
    "markername":"Headquarters",
    "basemap":"googleLayer_roadmap",
    "layer":"1",
    "lat":"39.9110590",
    "lon":"-83.7670629",
    "icon":"workoffice.png",
    "popuptext":"<h3><a title='Web Designer' href='http://somedomain.com/job/web-designer/'>somedomain.com</a></h3><b> testing bold html<b>",
    "zoom":"11",
    "openpopup":"0",
    "mapwidth":"640",
    "mapwidthunit":"px",
    "mapheight":"480",
    "panel":"1",
    "createdby":"Johnny",
    "createdon":"2014-03-12 17:04:48",
    "updatedby":"",
    "updatedon":"2014-03-12 17:04:48",
    "controlbox":"1",
    "overlays_custom":"0",
    "overlays_custom2":"0",
    "overlays_custom3":"0",
    "overlays_custom4":"0",
    "wms":"0",
    "wms2":"0",
    "wms3":"0",
    "wms4":"0",
    "wms5":"0",
    "wms6":"0",
    "wms7":"0",
    "wms8":"0",
    "wms9":"0",
    "wms10":"0",
    "kml_timestamp":"",
    "address":"932 Barker Drive, Springfield, OH 45505, USA"
    }});

    using the same code i made this

    <?php
    
        // version:
    
    					////** save marker to mapsmarker
    
    					function calculate_signature($string, $private_key) {
    					$hash = hash_hmac("sha1", $string, $private_key, true);
    					$sig = rawurlencode(base64_encode($hash));
    					return $sig;
    					}
    					$api_key = "1234";
    					$private_key = "abcd";
    					$expires = strtotime("+60 mins");
    					$string_to_sign = sprintf("%s:%s", $api_key, $expires);
    					$sig = calculate_signature($string_to_sign, $private_key);
    					var_dump($sig);
    
    					echo "<br>";
    
    					$created_on=date("Y-m-d H:i:s");
    					$icon_marker= "workoffice.png";
    					$created_by="Spot Submit";
    
    					// spotfinder fields
    					$title="test";
    					$address="932 Barker Drive, Springfield, OH, United States";
    					$slogan="Johnny Testsing via php file";
    
    					$map_url='http://somedomain.com/wp-content/plugins/leaflet-maps-marker/leaflet-api.php?key='.$api_key.'&signature='.$sig.'&expire='.$expires.'&action=add&type=marker&layer=1&markername='.$title.'&geocode='.$address.'&popuptext='.$slogan.'&icon='.$icon_marker.'&createdby='.$created_by.'&createdon='.$created_on.'';
    					//$map_url='http://somedomain.com/wp-content/plugins/leaflet-maps-marker/leaflet-api.php?key='.$api_key.'&signature='.$sig.'&expire='.$expires.'&action=add&type=marker&layer=1&markername='.$title.'&geocode='.$address;
    					$mappage = file_get_contents($map_url);
    					echo $map_url;
    					echo "<br>";
    					echo $mappage;
    ?>

    i get in reply

    string(30) "RlZFpBJLyOwOp2kZeaanhE6df5w%3D"
    http://somedomain.com/wp-content/plugins/leaflet-maps-marker/leaflet-api.php?key=1234&signature=RlZFpBJLyOwOp2kZeaanhE6df5w%3D&expire=1394647466&action=add&type=marker&layer=1&markername=test&geocode=932 Barker Drive, Springfield, OH, United States&popuptext=Johnny Testsing via php file&icon=workoffice.png&createdby=Spot Submit&createdon=2014-03-12 11:04:26
    jsonp({ "success":false, "message":"signature is invalid", "data": { } });

    im not sure why its not allowing the sig.its the exact code as the other one but im using the url and not post from php.
    any help would be most grateful

  5. JohnnyB3
    Member
    Posted 1 year ago #

    ps: yes the api_key and private_key are the correct ones matching what im using in the site

  6. JohnnyB3
    Member
    Posted 1 year ago #

    well wouldn't you know the problem was another typo on my part.
    expire needs to be expires (needed an s)
    sorry

    so hopefully others will see the code i have written and be able use the code.

  7. RobertHarm
    Member
    Plugin Author

    Posted 1 year ago #

    gald to hear that you could solve the issue!
    Thanks also for the examples - will add them to the docs!
    best,
    Robert

  8. JohnnyB3
    Member
    Posted 1 year ago #

    there seems to be a problem with the url submission routine

    i've checked several times and i do not have any errors i can see
    i have also tried to use

    '&address='.$address.'&lat='.$lat.'&lon='.$lng.'';

    passing the correct address(geolocation as the addy) and lat/lng
    that does not work as well

    heres what i have as the log output
    (the url passed is in the first log line as i made a log output to see what's going on

    "2014-03-13 20:25:10",98.28.197.xxxx,/wp-admin/admin-ajax.php," somedomain.com - Post ID: 514 - Address: 928 Avondale Avenue, Springfield, OH, United States sf adddy: 928 Avondale Avenue, Springfield, OH, United States - Proccessed http://somedomain.com/wp-content/plugins/leaflet-maps-marker/leaflet-api.php?key=1234&signature=HRKYXpL9WUlmKuegwNLdU3s9Y0s%3D&expires=1394745911&action=add&type=marker&layer=1&geocode=928 Avondale Avenue, Springfield, OH, United States&icon=workoffice.png&createdby=Spot_Submit&popuptext=testing&markername=johnny testing ********************** jsonp({
    ""success"":true,
    ""message"":""Marker has been successfully published"",
    ""data"": {
    ""id"":""32"",
    ""markername"":"""",
    ""basemap"":""googleLayer_roadmap"",
    ""layer"":""1"",
    ""lat"":""22.4628783"",
    ""lon"":""120.4703258"",
    ""icon"":"""",
    ""popuptext"":"""",
    ""zoom"":""11"",
    ""openpopup"":""0"",
    ""mapwidth"":""640"",
    ""mapwidthunit"":""px"",
    ""mapheight"":""480"",
    ""panel"":""1"",
    ""createdby"":"""",
    ""createdon"":""2014-03-13 20:25:11"",
    ""updatedby"":"""",
    ""updatedon"":""2014-03-13 20:25:11"",
    ""controlbox"":""1"",
    ""overlays_custom"":""0"",
    ""overlays_custom2"":""0"",
    ""overlays_custom3"":""0"",
    ""overlays_custom4"":""0"",
    ""wms"":""0"",
    ""wms2"":""0"",
    ""wms3"":""0"",
    ""wms4"":""0"",
    ""wms5"":""0"",
    ""wms6"":""0"",
    ""wms7"":""0"",
    ""wms8"":""0"",
    ""wms9"":""0"",
    ""wms10"":""0"",
    ""kml_timestamp"":"""",
    ""address"":""Donggang Township, Pingtung County, Taiwan 928""
    }}); ******************"

    it seems that the info is not being parsed right. i tried adding double quotes no joy there i did not try single quotes. and i also noticed that it only takes the first word in places like marker name and some others.
    is there a way to maybe encode or add slashes maybe to the url so it works. im at a loss here as well as the reason for the missed/wrong geolocation too

    id really like to use this map but if i cant add markers its kinda useless to me. and im spending way too much time on this. i am going to have to abandon it and move on to something else soon if i cant get it to work. and i like this one a lot so id rather not do that.

  9. RobertHarm
    Member
    Plugin Author

    Posted 1 year ago #

    Hi Johnny,

    I am having issues reproducing your issue - I tried to process the following request directly on my server via GET request (no ajax):

    leaflet-api.php?key=xxx&signature=yyy&expires=1395982655&action=add&type=marker&layer=1&geocode=928 Avondale Avenue, Springfield, OH, United States&icon=workoffice.png&createdby=Spot_Submit&popuptext=testing&markername=johnny

    the output can be seen here: http://postimg.org/image/6rbvbdjkn/ - everything seems to be ok to me.

    Then also tried the same with a POST request - same result.

    Would it be possible for me to try your ajax example on your server? currently I dont have a clue why the API does not work for you...
    best,

    Robert

  10. JohnnyB3
    Member
    Posted 1 year ago #

    is there a difference in the test of api and the url file?
    as i can use the same exact code that fails in the test routing(for get/post) and it works perfectly i call it form my code and it fails.

    heres what im using as a simple test

    <?php
    
        // version:
    
    					////** save marker to mapsmarker
    
    					function calculate_signature($string, $private_key) {
    					$hash = hash_hmac("sha1", $string, $private_key, true);
    					$sig = rawurlencode(base64_encode($hash));
    					return $sig;
    					}
    					$api_key = "xxxx";
    					$private_key = "xxxx";
    					$expires = strtotime("+60 mins");
    					$string_to_sign = sprintf("%s:%s", $api_key, $expires);
    					$sig = calculate_signature($string_to_sign, $private_key);
    					var_dump($sig);
    
    					echo "<br>";
    
    					$created_on=date("Y-m-d H:i:s");
    					$icon_marker= "workoffice.png";
    					$created_by="Spot Submit";
    
    					// spotfinder fields
    					$title="test 2";
    					$address="932 Barker Drive, Springfield, OH, United States";
    					$slogan="Johnny Testsing via php file";
    
    					//$sig="XDXL0PL7yycrdTiBP3o8%2FAz7WhY%3D";
    					$map_url='http://xxx.com/wp-content/plugins/leaflet-maps-marker/leaflet-api.php?key='.$api_key.'&signature='.$sig.'&expires='.$expires.'&action=add&type=marker&layer=1&markername='.$title.'&geocode='.$address.'&popuptext='.$slogan.'&icon='.$icon_marker.'&createdby='.$created_by.'&createdon='.$created_on.'';
    					$mappage = file_get_contents($map_url);
    					echo $map_url;
    					echo "<br>";
    					echo $mappage;
    ?>

    output

    string(30) "Va7m9on4f67Gg6oPTcr4N7B51Nw%3D"
    http://xxxxx.com/wp-content/plugins/leaflet-maps-marker/leaflet-api.php?key=1234&signature=Va7m9on4f67Gg6oPTcr4N7B51Nw%3D&expires=1394750042&action=add&type=marker&layer=1&markername=test 2&geocode=932 Barker Drive, Springfield, OH, United States&popuptext=Johnny Testsing via php file&icon=workoffice.png&createdby=Spot Submit&createdon=2014-03-13 15:34:02
    jsonp({ "success":true, "message":"Marker has been successfully published", "data": { "id":"37", "markername":"test", "basemap":"googleLayer_roadmap", "layer":"1", "lat":"48.216038", "lon":"16.378984", "icon":"", "popuptext":"", "zoom":"11", "openpopup":"0", "mapwidth":"640", "mapwidthunit":"px", "mapheight":"480", "panel":"1", "createdby":"", "createdon":"2014-03-13 21:34:02", "updatedby":"", "updatedon":"2014-03-13 21:34:02", "controlbox":"1", "overlays_custom":"0", "overlays_custom2":"0", "overlays_custom3":"0", "overlays_custom4":"0", "wms":"0", "wms2":"0", "wms3":"0", "wms4":"0", "wms5":"0", "wms6":"0", "wms7":"0", "wms8":"0", "wms9":"0", "wms10":"0", "kml_timestamp":"", "address":"" }});

    again the output it makes with the url "echo $map_url" works fine if copied and pasted in to your test api call for get/post
    also note this is outside wordpress its a simple call file, my current routine where i noticed the problem is inside wordpress but using the same code as pasted above.

    thanks for all the help and sorry i am coming up with problems.

  11. RobertHarm
    Member
    Plugin Author

    Posted 1 year ago #

    Hi Johnny,
    thanks for the example file - will try to reproduce this issue on my server with it and let you know the results (I am away today but hopefully will be able to reply till Sunday evening...)
    best,
    Robert

  12. RobertHarm
    Member
    Plugin Author

    Posted 1 year ago #

    Hi Johnny,

    I found the issue: please encode all URL parameters that can contain spaces with urlencode(), then it works:

    $map_url='http://xxx/wp-content/plugins/leaflet-maps-marker-pro/leaflet-api.php?key='.$api_key.'&signature='.$sig.'&expires='.$expires.'&action=add&type=marker&layer=1&markername='.urlencode($title).'&geocode='.urlencode($address).'&popuptext='.urlencode($slogan).'&icon='.$icon_marker.'&createdby='.urlencode($created_by).'&createdon='.urlencode($created_on).'';

    Will add this to the API docs too...

    best,

    Robert

  13. JohnnyB3
    Member
    Posted 1 year ago #

    yes it works now thank you so much sont believe i would not have gotten the urlencode, altho i did ask about that.

    several things to note - (some things that tripped me up):
    1: you have a free version and a pro version with different url paths, that has tripped me up a few times for having the marker work. please add to docs the paths maybe different (yours has -pro in the url path)

    2: you should have each variable in an example so the docs are more complete, it took me some reading to get all the vars i wanted to use in your nifty doc explanation, but no examples of what was needed as an example.

    3: you should note the icon is just the name of the icon file name ie: workoffice.png and is the icons located in the folder (should give default folder path here(sorry forgot what it was)

    please do use any examples you'd like in your docs if you would like ill post all my code after i clean it up some, on how to add to wordpress (as i added all this to the spotfinder theme(i was not happy with the included map routine) - i was able to do the Google places auto address in a simple add in for a textbox, use that info and build my marker with popup text and all. it even has the post url in the popup - so someone can goto the spots page when inside the popup of the marker. (give me a bit to clean it up and illa wait if youd even like that info as an example.

    one other question: i figure i can always use this as a stand-alone program outside wordpress - by installing a dummy wordpress site and using your map plugin remotely. Are there any plans on a outside wordpress version. its so nifty i have others sites id like to use it on too that are not wordpress driven.

    if i remember anything else ill post it for you. thank you so much for all your help.

    where do i go to vote again please, id like to give this plugin a glowing review??

  14. RobertHarm
    Member
    Plugin Author

    Posted 1 year ago #

    Hi Johnny,

    glad to hear that it works now!

    regarding note 1:
    would like to refer you to the API docs at http://www.mapsmarker.com/docs/api-tutorials/web-api/#endpoint - this section is about the difference in endpoints in free & pro version

    regarding note 2:
    please have a look again at the the docs, http://www.mapsmarker.com/docs/api-tutorials/web-api/#available-parameters-for-type-marker respectively http://www.mapsmarker.com/docs/api-tutorials/web-api/#available-parameters-for-type-layer - the second column "required?" shows which parameters are needed and which are optional.

    regarding note 3:
    I added some additional info to the doc at http://www.mapsmarker.com/docs/api-tutorials/web-api/#available-parameters-for-type-marker for the parameter icon - thx for the input.

    regarding additional examples:
    I have put this on my 2do list for a later update of the API docs - if you have working example I can list there too, please send me them.

    regarding usage outside of WordPress: currently there are no plans to port Maps Marker Pro to other content management systems - the only way currently would be to manage them via the API and for example re-embedd them on other sites via iframe which point to fullscreen-maps generated.

    best,
    Robert

    PS: I`d appreciate your reviews here: http://wordpress.org/support/view/plugin-reviews/leaflet-maps-marker ;-)

  15. JohnnyB3
    Member
    Posted 1 year ago #

    regarding note 1: im stupid for not looking

    regarding note 2: No i meant a column maybe with example text
    ie: icon file name for the icon, the fact that the geolocation should be used with urlencode and full replied address form google's auto complete works best, ect

    regarding note 3: thx im impressed your so fast at things

    regarding examples: I will put together a how-to (as time permits with in the next week or so) of what i did so far. altho most of my code is above.

    regarding outside WP: yes a stand alone version would be very nice as an api i can personally use it now on a few sites i have. As i have pointed out before you could simple do it by installing a placeholder(or one being used) WP install add your plugin and then manipulate it via api calls to external site.
    altho it be nice if the stand alone had a admin panel interface and was not using wp integration. (just a thought as I know of no one that has one yet)

    Thanks for everything, I tried to make the best review i could. I am very impressed on all the hard word you've done with this plugin and your caring about your work. Thank you again

  16. RobertHarm
    Member
    Plugin Author

    Posted 1 year ago #

    regarding 2: example column is a good idea - just went on the 2do list ;-)

    regarding 3: appreciate if I can add your examples too, but please take your time - I am just in the middle of preparing the next releases and updating the API docs still has to a wait a bit...

    regarding outside WP: I keep your feedback in mind, sound like good ideas to me, although I do not want to raise false expectations, building a version that works outside WP is not a high priority, as my roadmap with already planned features is wayyy to long still ;-)
    best,
    Robert

  17. JohnnyB3
    Member
    Posted 1 year ago #

    the examples can simply be added to the already note column as Notes/Examples heading and then in notes at the bottom of existing notes Example: blah blah

    I feel bad I have so much on my plate[to-do list] too as i have how to use google places address autocomplete, your form example, and url api calls working i even hacked a wp theme to make it work too, again 90% of the code is above.

    outside wp - just a thought this code is to good not to expand it to other places. can we say NEXT project!! (altho from the work load you have this maybe a while *smile*

  18. RobertHarm
    Member
    Plugin Author

    Posted 1 year ago #

    :-)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic