How to execute function in html code.
Nobody has claimed this yet.
- Dominant language
- Objective-C++
- Stars
- 2.7k
- Forks
- 734
- Avg merge
- 11h 39m
- Merged PRs (30d)
- 1
Description
Hello? I am using the plugin that you have developed usefully. thank you very much.
I have one issue at the moment. I have to run the funcion in the html code.
This is an example of moving the map in real time using GPS coordinates.
I have to call function move (x, y, z) with GPS coordinates and ZOOM value.
How do I call it in WebView?
Thank you for your reply.
<title>api2.0_maptest</title> <script type="text/javascript" src="http://map.vworld.kr/js/vworldMapInit.js.do?version=2.0&apiKey=767B7ADF-10BA-3D86-AB7E-02816B5B92E9"></script> 여의도 독도 <script type="text/javascript"> vw.ol3.MapOptions = { basemapType: vw.ol3.BasemapType.GRAPHIC , controlDensity: vw.ol3.DensityType.EMPTY , interactionDensity: vw.ol3.DensityType.BASIC , controlsAutoArrange: true , homePosition: vw.ol3.CameraPosition , initPosition: vw.ol3.CameraPosition };var vmap = new vw.ol3.Map("vmap", vw.ol3.MapOptions);
function move(x,y,z){
var _center = [ x, y ];
var z = z;
var pan = ol.animation.pan({
duration : 2000,
source : (vmap.getView().getCenter())
});
vmap.beforeRender(pan);
vmap.getView().setCenter(_center);
setTimeout("fnMoveZoom()", 3000);
}
function fnMoveZoom() {
zoom = vmap.getView().getZoom();
if (16 > zoom) {
vmap.getView().setZoom(14);
}
};
</script>
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the embedded HTML and JavaScript example; the issue does not name a project file or WebView entry point. Determine the supported way to invoke move(x, y, z) from the WebView, then document a reproducible example using GPS coordinates and a zoom value.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- html, javascript
- Domain
- web-dev
- Issue type
- Documentation
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100