Does Heremaps support custom map URL similar to Bing Map? - here-api

Am I able to construct a custom URL using Heremap? For example, with Bing Map, I'm able to contruct a custom URL with various parameters and set the link to something like this for the user to click on:
https://bing.com/maps/default.aspx?rtp=adr.One%20Microsoft%20Way,%20Redmond,%20WA%2098052~pos.45.23423_-122.1232_MyPlace&rtop=0~1~0
This is the instructions for Bing Map to do this, but I can't find something similar for Heremap:
https://learn.microsoft.com/en-us/bingmaps/articles/create-a-custom-map-url

I don't see it documented anywhere, but I figured out a few ways to do this with the HEE We Go site.
To search by address or name, you can create a URL like: https://wego.here.com/search/[query]
For example: https://wego.here.com/search/One%20Microsoft%20Way,%20Redmond,%20WA%2098052
You can add ,[map style] if you want to also set the map style. where the map style can be; normal, satellite, terrain, traffic, or public_transport.
For example; https://wego.here.com/search/One%20Microsoft%20Way,%20Redmond,%20WA%2098052,satellite
If you want to go straight to a coordinate, you can use the following format:
https://wego.here.com/?map=[latitude],[longitude],[zoom],[map style]
For example: https://wego.here.com/?map=47.62114,-122.34654,18,satellite

Related

Google Tag Manager - Capture Multiple URLs as one URL

I am using Google Tag Manager (GTM) and the web application has multiple URL's for the same page due to the frameworks.
For example the following four (4) URLS load the same page:
/
/#/
/public/home
/public/home#/
Another example:
/resources
/resources#/
How do I tell GTM that a group of URL's are actually the SAME page?
Thanks for your help
If it's just about a few urls you could use a lookup table - choose your url path as the input variable, enter your paths on the left side and use the right side of the assignment to set a unified path as output.
If you have many urls it might be better to solve that on the framework level and have it output a key/value pair to the dataLayer, i.e.
dataLayer.push({
'virtualPath' = '/remains-the-same-for-all-variations/'
})
and use that instead of the url field within GTM.

How to reload the by iron-router in meteor?

I get the data from database randomly for my page. And I would like to add a <a> tag to link to the same page for getting another random data. However, since it does nothing if the target page is the same as the current page.
Is any better way to get the new data?
Have a look at this issue: https://github.com/EventedMind/iron-router/pull/324
Basically iron-router adds events to all your a tags. Also the corresponding bit of code: https://github.com/EventedMind/iron-router/blob/79861385df5d2b667630ec82abe4de3efa3166e3/lib/client/location.js#L48
So you need to pass a selector to IronLocation that does include the a tag that does this:
E.g you could do
IronLocation.configure({
'linkSelector' : 'a[href][data-router="true"]'
});
I'm not sure what you're a tags look like. But you could either make all the ones you want to work by changing all the a tags you want to work with iron router, like above. Or change a specific a tag and exlcude it:
'linkSelector' : 'a:not([ironskip])'
Then use <a href=".." ironskip>..</a> for the route you dont want iron-router to handle.
So this way you can specify what a tags you want iron-router to touch and which ones you dont.

google map not showing because of hash fragment in URL

I have a google map with a custom pointer in one of my sites. My theme uses parallax, so there is an extra hash fragment in my url. when I am manually taking of the fragment from the URL, the map shows fine. But if I try to access the page normally, from navigation, with the hash fragment, the map does not show. I have no idea how to fix it. Any help is much appreciated.
The page with the map: http://goo.gl/IIFg1u
There are 2 scripts that call $.noConflict() (default.min.js and ajax.min.js), jQuery will not be accessible after that by using the $ . Try to replace the $ at the begin of maps.js with jQuery

How to post a comment on photo or video?

How to post a comment on image or video, using the graph api?
And how to post an image, using the graph api?
I am trying to code like this, using this URL but it's not working properly:
https://graph.facebook.com/page_id/feed?acess_token=tokengenerated&method=post&picture=Image/photo1.bmp
Does it require to add # character ?
If I add it, it still doesn't work properly:
&picture=#Image/photo1.bmp
It gives me an error stating that the picture URL is not properly formatted.
https://graph.facebook.com/page_id/feed?access_token=tokengenerated&method=post&picture=Image/photo1.bmp
Might it be a spelling mistake:
acess => access

Google Maps API v3 - custom multi-colored icons

It seems like I have to assign an hosted image URL to a MarkerImage object to create custom icons. Is there a way to allow the user to pick a color to fill in this image?
Try using the Google Charts API to generate markers. You can choose the colour.
Look for styled markers in a list of Google Maps libraries. This looks like it could help.
I would also look into generating the images on the fly with canvas and then producing a data URL:
var dataURL = canvas.toDataURL("image/png");

Resources