MH5 dragle mark and API Explorer examples
Ciao,
I wanted to know if there is an example somewhere for MH5 regarding dragle marker like this [URL="http://developer.here.net/apiexplorer/examples/api-for-js/markers/draggable-markers.html"]one[/URL]
Trying to do some technology investigation and noticed that MH5 is really cool but the site lacks of examples.
It would be great to have the same sample from the API explorer for MH5.
Alessandro
Re: MH5 dragle mark and API Explorer examples
I'm a noob at MH5, but as much as I've figured it out, there's a poiclick event...once you click a poi (i.e. a marker you created using the createPoi) of your choice have it set some bool so you'll know your map is in marker dragging mode...after that my guess is one should use mapmovestart: function(e) {} and mapmoveend: function(e) {} listeners .... hopfully that helps.
Re: MH5 dragle mark and API Explorer examples
Hi Alessandro,
unfortunately, the requested example doesn't exist. Because we don't have this feature in MH5 yet you would need to do the entire job on your own like:
- add touchstart/touchmove/touchend events to map.root;
- check in touchstart if the coordinates of the event are inside the created poi;
- move the poi accordingly to the touchmove event;
- release the pois after the touchend event
Br,
Leo
Re: MH5 dragle mark and API Explorer examples
Ciao Leo,
I understand but I am doing some technology investigation before doing prototyping and it would help, not only for me, to have some examples as the other APIs.
Alessandro